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
- Source: http://desandro.com/resources/jquery-masonry
- Examples: Basic | Tumblelog | Infinite Scroll
- License: Dual-licensed under GPL and MIT
Do you wish to receive the latest updates as soon as they are posted? Get our RSS Feed or Subscribe to the Newsletter!
- January 1, 2010
- article by Gabriel C.
- 3 comments
Related Posts
-
Expose HTML Elements with Style: jQuery Highlighter Pluginat January 3, 2010
-
Flip HTML Elements like Cards: QuickFlip 2.0 jQuery Pluginat July 21, 2009
-
Carousel Examples: YUI Library, jQuery, MooTools & Prototypeat April 11, 2009
-
Beautifully Style your HTML Form Elements: Uniformat February 10, 2010
-
Grid Accordion with jQuery: Pack lot of text into a small placeat March 30, 2010

3 Replies to "Arrange HTML Elements according to the Grid: jQuery Masonry"
January 8, 2010 at 4:52 AM
ahhhh if only this worked with script.aculo.us too!
January 8, 2010 at 6:56 AM
You can use both JQuery and Script.aculo.us ;)
January 11, 2010 at 6:53 PM
can use query and script for applications programs