Masonry is a JavaScript grid layout library. It works by placing elements in optimal position based on available vertical space, sort of like a mason fitting stones in a wall.
http://masonry.desandro.com/
#burhaantargett<p class='wdgpo_gplus_attachment wdgpo_gplus_article_attachment'>Cascading grid layout library</p>