Arrange HTML Elements according to the Grid: jQuery Masonry

Posted on January 1, 2010, under jQuery,  Bookmark it

It’s well known that the CSS floating arranges the elements horizontally then vertically. JQuery Masonry, a layout plugin, is like a flip side of CSS Floats. It arranges elements vertically then horizontally according to the grid. Thus, the vertical gaps between elements of varying height are minimized, just like a mason fitting stones in a wall.

Features include:

  • Multi-column width support
  • Appending elements and Infinite Scroll support
  • Proper fluid resizing support
  • Less obtrusive layout. No inserting additional markup.
  • Automatically binds event to window resizing

Do you wish to receive the latest updates as soon as they are posted? Get our RSS Feed or Subscribe to the Newsletter!

Get our RSS Feed!

3 Replies to "Arrange HTML Elements according to the Grid: jQuery Masonry"

  1. ahhhh if only this worked with script.aculo.us too!

    1. You can use both JQuery and Script.aculo.us ;)

  2. can use query and script for applications programs

Leave a Reply


* = required fields

  (will not be published)


XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Note: If you want to post CODE Snippets, please make them postable first!
(e.g. <br /> should be converted to &lt;br /&gt;)