<?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>ReDsgn &#187; Ordered Lists</title>
	<atom:link href="http://www.redsgn.com/tag/ordered-lists/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.redsgn.com</link>
	<description>When small things come together great things happen.</description>
	<lastBuildDate>Tue, 10 Nov 2009 04:15:01 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Beautiful Print Style Ordered Lists using a simple CSS Technique</title>
		<link>http://www.redsgn.com/2008/11/21/beautiful-print-style-ordered-lists-using-a-simple-css-technique/</link>
		<comments>http://www.redsgn.com/2008/11/21/beautiful-print-style-ordered-lists-using-a-simple-css-technique/#comments</comments>
		<pubDate>Fri, 21 Nov 2008 18:34:56 +0000</pubDate>
		<dc:creator>Paul Boutin</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[XHTML]]></category>
		<category><![CDATA[Ordered Lists]]></category>
		<category><![CDATA[Styling]]></category>

		<guid isPermaLink="false">http://www.redsgn.com/?p=98</guid>
		<description><![CDATA[This is a simple technique for creating large heading style list numbers while maintaining normal text sizes in the content of my list.
The Problem: HTML Lists don&#8217;t allow you to style the list counters separate form the contents of the list.
Here is the markup for my Ordered List. (note the span tag that wraps the [...]]]></description>
			<content:encoded><![CDATA[<p>This is a simple technique for creating large heading style list numbers while maintaining normal text sizes in the content of my list.</p>
<p><strong>The Problem:</strong> HTML Lists don&#8217;t allow you to style the list counters separate form the contents of the list.</p>
<p>Here is the markup for my Ordered List. (note the span tag that wraps the content&#8230; this is important)</p>
<p><code>&lt;ol&gt;<br />
&lt;li&gt;&lt;span&gt;&lt;strong&gt;Intro&lt;/strong&gt; description. &lt;/span&gt;&lt;/li&gt;<br />
&lt;li&gt;&lt;span&gt;&lt;strong&gt;Intro&lt;/strong&gt; description. &lt;/span&gt;&lt;/li&gt;<br />
&lt;li&gt;&lt;span&gt;&lt;strong&gt;Intro&lt;/strong&gt; description. &lt;/span&gt;&lt;/li&gt;<br />
&lt;/ol&gt;</code></p>
<p>The basic Idea here is to overcome the limitations of styling the list numbers separate from the content. In order to accomplish this I use the span tag to wrap the content.</p>
<p>Now for the CSS</p>
<p><code>ol {<br />
color:#225E8A;<br />
font-size:1.5em;<br />
font-weight:900;<br />
}<br />
ol li span {<br />
color:#696969;<br />
font-size:0.7em;<br />
font-weight:normal;<br />
}</code></p>
<h3>Whats going on?</h3>
<p>I am setting the color and size of the font on the &#8220;ol&#8221; element, to a 1.5em larger size from its parent size (the body) and making it bold and blue. This will style the list numbers <em>and</em> the content. Now I need to reset the content of my list items to use a smaller font of regular color and weight. To do this I simply style the span that is wrapping the content to a smaller size and normal color and weight.</p>
<p>I use a .7em here to say I want to make my font .7em of its parent size which was 1.5em larger than my base size. So if my body font size is 12px, 1.5em makes my &#8220;ol&#8221; font size 18px. Now I want to re-size my lists content font to roughly 12px, so .7em of the &#8220;ol&#8221; font size (18px) we will get 12.6px. (A closer number would be .67em.) I am also resetting the color and weight to match the rest of the page text.</p>
<h3>Example</h3>
<div id="page-content">
<ol>
<li><span><strong>Intro</strong> description. </span></li>
<li><span><strong>Intro</strong> description. </span></li>
<li><span><strong>Intro</strong> description. </span></li>
</ol>
</div>
<p>for more information read my other post on <a href="hhttp://www.redsgn.com/2008/11/15/calculating-ems/">Calculating ems</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.redsgn.com/2008/11/21/beautiful-print-style-ordered-lists-using-a-simple-css-technique/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
