You can have a look at the code http://jsfiddle.net/2eyzm/. I have no idea what I am doing wrong but it is not working. The boxes should be sliding up to fill in the gaps. Is this right?
$(function(){
$('#container').masonry({
itemSelector : '.item',
});
});
This caused by incorrect script loading order. you should load jQuery before loading it’s plugins:
Try this:
http://jsfiddle.net/9wGUj/