I have been reading stack overflow for a solution but can\'t find it.
(full si
The problem is that when you run .isotope the images are not yet loaded, so the plugin cannot calculate their size..
You have some different options to choose from
$(window).load(function(){/*init plugin here*/}) $(window).load(function(){$('#thumbs').isotope('reLayout');});li elements are fixed size, then give them dimensions through CSS, and isotope will pick them up..