Masonry is a layout plugin for jQuery. Think of it as the flip side of CSS floats. Whereas floating arranges elements horizontally then vertically, Masonry arranges elements vertically then horizontally according to a grid. The result minimizes vertical gaps between elements of varying height, just like a mason fitting stones in a wall.
Faruk Ateş :
What makes Modernizr different from a lot of other, existing approaches is that it doesn’t use any UserAgent sniffing at all—in fact, Modernizr was partially designed and developed precisely to put an end to UA sniffing. It is a bad, unsafe and unreliable practice so the more alternatives we have to do it right, the better.