<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Using nth-of-type to create grid blocks that clear</title>
	<atom:link href="http://maban.co.uk/269/feed" rel="self" type="application/rss+xml" />
	<link></link>
	<description>Anna Debenham - Front End Developer</description>
	<lastBuildDate>Thu, 15 Jul 2010 10:15:36 -0700</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Ad Taylor</title>
		<link>http://maban.co.uk/269#comment-4899</link>
		<dc:creator>Ad Taylor</dc:creator>
		<pubDate>Tue, 25 Aug 2009 12:26:30 +0000</pubDate>
		<guid isPermaLink="false">http://maban.co.uk/?p=269#comment-4899</guid>
		<description>Used nth-of-type in jQuery before but didn&#039;t even know t was a CSS selector. Pretty exciting, can&#039;t wait to use it.

I guess a possible fall back for the likes of IE and older browsers could come in form of :
&lt;code&gt; .block + .block + .block, .block + .block + block + .block + .block + .block { clear : both;}&lt;/code&gt; 
It&#039;s a horrendous alternative but if it means I can play with nth-of-type, I&#039;m in!</description>
		<content:encoded><![CDATA[<p>Used nth-of-type in jQuery before but didn&#8217;t even know t was a CSS selector. Pretty exciting, can&#8217;t wait to use it.</p>
<p>I guess a possible fall back for the likes of IE and older browsers could come in form of :<br />
<code> .block + .block + .block, .block + .block + block + .block + .block + .block { clear : both;}</code><br />
It&#8217;s a horrendous alternative but if it means I can play with nth-of-type, I&#8217;m in!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anna Debenham</title>
		<link>http://maban.co.uk/269#comment-4898</link>
		<dc:creator>Anna Debenham</dc:creator>
		<pubDate>Tue, 25 Aug 2009 11:21:41 +0000</pubDate>
		<guid isPermaLink="false">http://maban.co.uk/?p=269#comment-4898</guid>
		<description>@Ewan Yep, if you apply them to the block they can.  They just work like any other divs.  In the example I&#039;ve given, I applied a 40px right margin to the first and second blocks in the row.

@Emily Thanks! Yeah, the flickr stream does look a bit funny because they&#039;re all tilting the same way, but I&#039;m considering using the nth-of-type to tilt some in the other direction. This site is more of a sandpit than an attempt at a good design! ;)</description>
		<content:encoded><![CDATA[<p>@Ewan Yep, if you apply them to the block they can.  They just work like any other divs.  In the example I&#8217;ve given, I applied a 40px right margin to the first and second blocks in the row.</p>
<p>@Emily Thanks! Yeah, the flickr stream does look a bit funny because they&#8217;re all tilting the same way, but I&#8217;m considering using the nth-of-type to tilt some in the other direction. This site is more of a sandpit than an attempt at a good design! ;)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Emily Heath</title>
		<link>http://maban.co.uk/269#comment-4897</link>
		<dc:creator>Emily Heath</dc:creator>
		<pubDate>Tue, 25 Aug 2009 11:16:34 +0000</pubDate>
		<guid isPermaLink="false">http://maban.co.uk/?p=269#comment-4897</guid>
		<description>Wicked. Didn&#039;t now about nth of type at all. Thanks for the demo.

(Aside: i like the 4 degrees of rotation on the profile pics for these comments. Nice touch! :) Not sure I like it so much on the RHC Flickr stream though. Seems a bit much there.)</description>
		<content:encoded><![CDATA[<p>Wicked. Didn&#8217;t now about nth of type at all. Thanks for the demo.</p>
<p>(Aside: i like the 4 degrees of rotation on the profile pics for these comments. Nice touch! :) Not sure I like it so much on the RHC Flickr stream though. Seems a bit much there.)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ewan</title>
		<link>http://maban.co.uk/269#comment-4896</link>
		<dc:creator>Ewan</dc:creator>
		<pubDate>Tue, 25 Aug 2009 11:15:09 +0000</pubDate>
		<guid isPermaLink="false">http://maban.co.uk/?p=269#comment-4896</guid>
		<description>Very interesting, I have never heard of this selector before, and something I can think of using in a few instances already.

Haven&#039;t had a chance to play about yet, but ccan borders and the like be applied too? I&#039;m thinking of a product listing page, where you might not want a left/right border on the first and third item.</description>
		<content:encoded><![CDATA[<p>Very interesting, I have never heard of this selector before, and something I can think of using in a few instances already.</p>
<p>Haven&#8217;t had a chance to play about yet, but ccan borders and the like be applied too? I&#8217;m thinking of a product listing page, where you might not want a left/right border on the first and third item.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt Wilcox</title>
		<link>http://maban.co.uk/269#comment-4895</link>
		<dc:creator>Matt Wilcox</dc:creator>
		<pubDate>Tue, 25 Aug 2009 11:10:38 +0000</pubDate>
		<guid isPermaLink="false">http://maban.co.uk/?p=269#comment-4895</guid>
		<description>Hehe, I&#039;ve been playing with nth-child the last day or two too, and find the math involved less than ideal. I&#039;d not thought of using it for a layout solution like this though, nice one.</description>
		<content:encoded><![CDATA[<p>Hehe, I&#8217;ve been playing with nth-child the last day or two too, and find the math involved less than ideal. I&#8217;d not thought of using it for a layout solution like this though, nice one.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anna Debenham</title>
		<link>http://maban.co.uk/269#comment-4894</link>
		<dc:creator>Anna Debenham</dc:creator>
		<pubDate>Tue, 25 Aug 2009 11:00:45 +0000</pubDate>
		<guid isPermaLink="false">http://maban.co.uk/?p=269#comment-4894</guid>
		<description>@Steve - yes, writing 3n + 1 is a much better way of doing it and was just the streamlined solution I was looking for.</description>
		<content:encoded><![CDATA[<p>@Steve &#8211; yes, writing 3n + 1 is a much better way of doing it and was just the streamlined solution I was looking for.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve Marshall</title>
		<link>http://maban.co.uk/269#comment-4893</link>
		<dc:creator>Steve Marshall</dc:creator>
		<pubDate>Tue, 25 Aug 2009 10:54:51 +0000</pubDate>
		<guid isPermaLink="false">http://maban.co.uk/?p=269#comment-4893</guid>
		<description>Hey Anna,

I’ve thought of doing much the same sort of thing a few times. One interesting thing about &lt;code&gt;nth-of-type&lt;/code&gt; is that you can pass in a ‘number expression’ instead of just a number. What that means, then, is that you could, rather than explicitly coding for 4, 7, and 10, use ‘3n + 1’, and that would &lt;em&gt;always&lt;/em&gt; apply clearing after 3 elements.</description>
		<content:encoded><![CDATA[<p>Hey Anna,</p>
<p>I’ve thought of doing much the same sort of thing a few times. One interesting thing about <code>nth-of-type</code> is that you can pass in a ‘number expression’ instead of just a number. What that means, then, is that you could, rather than explicitly coding for 4, 7, and 10, use ‘3n + 1’, and that would <em>always</em> apply clearing after 3 elements.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ben Everard</title>
		<link>http://maban.co.uk/269#comment-4892</link>
		<dc:creator>Ben Everard</dc:creator>
		<pubDate>Tue, 25 Aug 2009 10:52:51 +0000</pubDate>
		<guid isPermaLink="false">http://maban.co.uk/?p=269#comment-4892</guid>
		<description>I agree with Matt, haven&#039;t heard of it before, and have a cracking project that it would be really useful for.

As you specified Anna, it is only supported by a few browsers, and not the monster that is IE. I guess it&#039;s deciding what&#039;s the lesser of two evils, using more divs than necessary, or using hacking your CSS to please Mr IE.

Great post :-)</description>
		<content:encoded><![CDATA[<p>I agree with Matt, haven&#8217;t heard of it before, and have a cracking project that it would be really useful for.</p>
<p>As you specified Anna, it is only supported by a few browsers, and not the monster that is IE. I guess it&#8217;s deciding what&#8217;s the lesser of two evils, using more divs than necessary, or using hacking your CSS to please Mr IE.</p>
<p>Great post :-)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jamie Knight</title>
		<link>http://maban.co.uk/269#comment-4891</link>
		<dc:creator>Jamie Knight</dc:creator>
		<pubDate>Tue, 25 Aug 2009 10:50:09 +0000</pubDate>
		<guid isPermaLink="false">http://maban.co.uk/?p=269#comment-4891</guid>
		<description>Hiya Anna,

Nice little trick there, I have seen something similar done with JS before to catch the browsers that have not quite kept up with the game.

^licks^

Jamie &amp; Lion</description>
		<content:encoded><![CDATA[<p>Hiya Anna,</p>
<p>Nice little trick there, I have seen something similar done with JS before to catch the browsers that have not quite kept up with the game.</p>
<p>^licks^</p>
<p>Jamie &amp; Lion</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt Oakes</title>
		<link>http://maban.co.uk/269#comment-4889</link>
		<dc:creator>Matt Oakes</dc:creator>
		<pubDate>Mon, 24 Aug 2009 23:01:37 +0000</pubDate>
		<guid isPermaLink="false">http://maban.co.uk/?p=269#comment-4889</guid>
		<description>I&#039;ve not thought about using that before. It&#039;s a shame we can use CSS selectors more because of compatibility.</description>
		<content:encoded><![CDATA[<p>I&#8217;ve not thought about using that before. It&#8217;s a shame we can use CSS selectors more because of compatibility.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
