<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
    xmlns:content="http://purl.org/rss/1.0/modules/content/"
    xmlns:wfw="http://wellformedweb.org/CommentAPI/"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
    xmlns:atom="http://www.w3.org/2005/Atom"
    xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
    xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
    >

<channel>
    <title>Webmonkey &#187; Masonry</title>
    <atom:link href="http://www.webmonkey.com/tag/masonry/feed/" rel="self" type="application/rss+xml" />
    <link>http://www.webmonkey.com</link>
    <description>The Web Developer&#039;s Resource</description>
    <lastBuildDate>Mon, 06 May 2013 17:29:19 +0000</lastBuildDate>
    <language>en-US</language>
    <sy:updatePeriod>hourly</sy:updatePeriod>
    <sy:updateFrequency>1</sy:updateFrequency>
    <generator>http://wordpress.org/?v=3.4.2</generator>
    
    <item>
        <title>jQuery Masonry: Play Tetris With Your CSS Floats</title>
        <link>http://www.webmonkey.com/2010/10/jquery-masonry-play-tetris-with-your-css-floats/</link>
        <comments>http://www.webmonkey.com/2010/10/jquery-masonry-play-tetris-with-your-css-floats/#comments</comments>
        <pubDate>Tue, 19 Oct 2010 18:00:29 +0000</pubDate>

                <dc:creator>Michael Calore</dc:creator>

        <guid isPermaLink="false">http://www.webmonkey.com/?p=48985</guid>
        		<category><![CDATA[CSS]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Visual Design]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Masonry]]></category>
		<category><![CDATA[tumblr]]></category>
            <enclosure url="http://www.webmonkey.com/wp-content/uploads/2010/10/jQuery-masonry.jpg" type="image/jpeg" length="48000" />
                    <description><![CDATA[<div class="rss_thumbnail"><img src="http://www.webmonkey.com/wp-content/uploads/2010/10/jQuery-masonry.jpg" alt="jQuery Masonry: Play Tetris With Your CSS Floats" /></div>One of the things that&#8217;s always on our minds here at Webmonkey and Wired is the wired.com news stream. We produce a huge number of posts every day, and our curated front door only shows the crème de la crème. The rest gets dumped in a river, which is informative, but not that exciting to [...]]]></description>

            <content:encoded><![CDATA[<p><!-- wpautop enabled -->
<p><a href="http://www.webmonkey.com/wp-content/uploads/2010/10/jQuery-masonry.jpg"><img src="http://www.webmonkey.com/wp-content/uploads/2010/10/jQuery-masonry-300x248.jpg" alt="" title="jQuery-masonry" width="300" height="248" class="alignleft size-medium wp-image-48986" /></a>One of the things that&#8217;s always on our minds here at Webmonkey and Wired is the <a href="http://wired.com/">wired.com</a> news stream. We produce a huge number of posts every day, and our curated front door only shows the crème de la crème. The rest gets dumped in a <a href="http://www.reallysimplesyndication.com/riverOfNews">river</a>, which is informative, but not that exciting to look at. So we see it as a challenge: how to keep it visually interesting and still show a good mix of stories, all with a minimal amount of fuss and busywork.</p>
<p><a href="http://tumblr.com/">Tumblr</a> is a good solution, and one that several other news organizations are using. I happened across the <a href="http://scaffold.tumblr.com/">Scaffold theme</a>, and I like how it organizes posts not on a strict grid, but on a fluid grid where elements fill in the gaps around each other. It looks like a Tetris board.</p>
<p>The secret sauce is <a href="http://desandro.com/resources/jquery-masonry/">jQuery Masonry</a>, a plug-in for the popular library by David Desandro.</p>
<p>&#8220;Think of it as the flip side of CSS floats,&#8221; he writes. &#8220;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.&#8221;</p>
<p>You can grab the code <a href="http://desandro.com/resources/jquery-masonry/">from Desandro</a> or check out the development version <a href="http://github.com/desandro/masonry">on GitHub</a>. Just like jQuery, it&#8217;s distributed under an MIT license.</p>
<p>A particularly nice use of it in the wild is Zander Martineau&#8217;s <a href="http://rathersplendid.net/">Rather Splendid</a> blog.</p>
<p><strong>See also:</strong><br/></p>
<ul>
<li><a href="http://www.webmonkey.com/2010/10/new-jquery-release-adds-jslint-support/">New JQuery Release Adds JSLint Support</a></li>
<li><a href="http://www.webmonkey.com/2010/01/jQuery_celebrates_4_years_on_the_web_with_jQuery_1dot4/">jQuery Celebrates 4 Years on the Web With New Release</a></li>
<li><a href="http://www.webmonkey.com/2010/02/get_started_with_jQuery/">Get Started With jQuery</a></li>
</ul>
<div id='linker_widget' class='contextly-widget'></div>]]></content:encoded>
            <wfw:commentRss>http://www.webmonkey.com/2010/10/jquery-masonry-play-tetris-with-your-css-floats/feed/</wfw:commentRss>
        <slash:comments>3</slash:comments>

        
    </item>
    </channel>
</rss>
