<?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>Full On Design &#187; Nth Number</title>
	<atom:link href="http://www.fullondesign.co.uk/tag/nth-number/feed" rel="self" type="application/rss+xml" />
	<link>http://www.fullondesign.co.uk</link>
	<description>Design &#38; Web Technologies</description>
	<lastBuildDate>Sun, 30 Oct 2011 21:37:16 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Making Zebra Stripes with CSS3</title>
		<link>http://www.fullondesign.co.uk/design/usability/1227-making-zebra-stripes-with-css3.htm</link>
		<comments>http://www.fullondesign.co.uk/design/usability/1227-making-zebra-stripes-with-css3.htm#comments</comments>
		<pubDate>Fri, 30 Oct 2009 22:01:35 +0000</pubDate>
		<dc:creator>Rogem</dc:creator>
				<category><![CDATA[Usability]]></category>
		<category><![CDATA[Amp]]></category>
		<category><![CDATA[Background Color]]></category>
		<category><![CDATA[Brackets]]></category>
		<category><![CDATA[Colours]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[Css Reference]]></category>
		<category><![CDATA[Css3]]></category>
		<category><![CDATA[Element]]></category>
		<category><![CDATA[Lt]]></category>
		<category><![CDATA[Nth Number]]></category>
		<category><![CDATA[pseudo-class]]></category>
		<category><![CDATA[Sitepoint]]></category>
		<category><![CDATA[Stripping]]></category>
		<category><![CDATA[Ul]]></category>
		<category><![CDATA[Zebra]]></category>
		<category><![CDATA[Zebra Stripes]]></category>

		<guid isPermaLink="false">http://www.fullondesign.co.uk/?p=1227</guid>
		<description><![CDATA[Zebra Stripping is the technique of having different colours per each line on a list. It generally is considered to help users read large tables of information; however there is evidence suggesting the effectiveness of zebra stripes is somewhat overrated. Having said that, in CSS3 it&#8217;s very easy to implement so it&#8217;s worthwhile adding. To [...]]]></description>
			<content:encoded><![CDATA[<p>Zebra Stripping is the technique of having different colours per each line on a list. It generally is considered to help users read large tables of information; however there is <a href="http://www.alistapart.com/articles/zebrastripingdoesithelp/">evidence suggesting the effectiveness of zebra stripes is somewhat overrated</a>. Having said that, in CSS3 it&#8217;s very easy to implement so it&#8217;s worthwhile adding.</p>
<p>To add Zebra Strips to a list, all you need to do is adding the following pseudo-class to the end of the CSS element you wish to edit:</p>
<p>
<pre class="brush: css; title: ; notranslate">
ul#example_list li:nth-child(odd) {
 background-color:#FFF;
}
</pre>
</p>
<p><span id="more-1227"></span></p>
<p>In this example, I&#8217;ve used an unordered list element. The data in the brackets refers to the &#8220;nth&#8221; number to affect, for example putting &#8220;(even)&#8221; will affect every even &lt;li&gt;. You can also put number in, for example &#8220;(3)&#8221; would affect every 3rd &lt;li&gt;.</p>
<p>Below is a link to a working example of the code in action (Feel free to copy &amp; share).</p>
<p><a href="http://www.fullondesign.co.uk/examples/zebra_strips_in_css3/zebra_strips_in_css3.html"><img class="aligncenter size-full wp-image-1229" title="zebra_strips_in_css3" src="http://www.fullondesign.co.uk/wp-content/uploads/2009/10/zebra_strips_in_css3.png" alt="zebra_strips_in_css3" width="103" height="108" /></a></p>
<p>If you want to read a bit more about the nth-child pseudo-class I recommend the <a href="http://reference.sitepoint.com/css/pseudoclass-nthchild">sitepoint CSS reference</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.fullondesign.co.uk/design/usability/1227-making-zebra-stripes-with-css3.htm/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using disk: basic
Database Caching 1/11 queries in 0.006 seconds using disk: basic
Object Caching 227/262 objects using disk: basic

Served from: www.fullondesign.co.uk @ 2012-02-04 08:45:05 -->
