Home › Forums › JavaScript › Grid View / List View featuring Masonry
- This topic is empty.
-
AuthorPosts
-
August 1, 2012 at 10:26 am #39161dnnotMember
hi everyone,
i’m sitting on this problem since 2 days.
http://jsfiddle.net/DSk8D/first problem:
why there is a big whitespace below the 1st Item of the grid-view? (maybe a css prob?)second problem:
i want to implement jquery.masonry with the grid view but the jquery hook is wrong $(‘#products.grid‘).masonry({ ?
only on refresh it works a bit – eh strange, maybe a cookie problem? i tried so many things but nothing worked.I will be very thankful for help.
Sorry if it is in the wrong category.August 1, 2012 at 11:26 am #107148CwapfaceParticipantAs far as your first problem, you do have a bottom-margin set to 50px, which causes that whitespace below.
.view {
margin: 0 0 50px 0;
}I am not very familiar with your masonry grid jquery plugin, but I will look into it. Maybe someone experienced with it will answer your question before I get back.
August 1, 2012 at 11:39 am #107151dnnotMembersorry, maybe I misspelled something . I mean the whitespace below the h1 of the red face ape.
August 1, 2012 at 12:01 pm #107156dnnotMembersure, but a fixed height is not a good solution for it, if i have more content as the fixed height : / (the height could change by different lengths of blog-articles)
August 1, 2012 at 12:21 pm #107159wolfcry911ParticipantYou haven’t linked to the masonry plugin. The whitespace is how it renders with normal floats ( a float can’t be higher than a previous float by default).
August 1, 2012 at 12:36 pm #107161dnnotMemberits linked in “Manage Resources” (3) (http://jsfiddle.net/DSk8D/)
https://raw.github.com/desandro/masonry/master/jquery.masonry.jsAugust 1, 2012 at 12:42 pm #107163wolfcry911Participantmy error, sorry. the rendering was standard css as if masonry wasn’t being applied
August 1, 2012 at 12:52 pm #107165dnnotMemberah ok thank you, now I know it is a javascript problem.
i must find a way to implement masonry correctly at the beginning and not after refresh : /August 2, 2012 at 3:43 am #107209Taufik NurrohmanParticipantShould work with reload and destroy method. But I check the console then show some errors :
cannot call methods on masonry prior to initialization; attempted to call method 'reload'
cannot call methods on masonry prior to initialization; attempted to call method 'destroy' -
AuthorPosts
- The forum ‘JavaScript’ is closed to new topics and replies.