Skip to content Skip to sidebar Skip to footer

Masonry Jquery Plugin Not Working For Me

I can't seem to get masonry plugin to work, i have tried for hours now.. I don't have any javascript errors. This is my code (now, not only at the basics but even like on the docum

Solution 1:

$('#container').masonry({ //no element in the dom with id=container// options
    itemSelector : '.item',
});

Your css selector is wrong. You're addressing it as #container which refers to the id, but there is no id specified on that element, only a class .container

Either change the selector to $('.container') or add an id attribute (i.e. <div id="container"> and you should be good to go.

Post a Comment for "Masonry Jquery Plugin Not Working For Me"