<?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; CSS</title>
	<atom:link href="http://www.redsgn.com/tag/css/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>Damn that IE, how to target Internet Explorer for CSS, Content and Scripts</title>
		<link>http://www.redsgn.com/2009/06/30/damn-that-ie-how-to-target-internet-explorer-for-css-content-and-scripts/</link>
		<comments>http://www.redsgn.com/2009/06/30/damn-that-ie-how-to-target-internet-explorer-for-css-content-and-scripts/#comments</comments>
		<pubDate>Tue, 30 Jun 2009 04:18:15 +0000</pubDate>
		<dc:creator>Paul Boutin</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[XHTML]]></category>
		<category><![CDATA[conditional comments]]></category>
		<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://www.redsgn.com/?p=391</guid>
		<description><![CDATA[We were once sold on the Idea that we needed true CSS hacks to make stuff work in IE we were also sold on browser detection with JavaScript for other content.
Conditional comments can do more than allow you to serve up different CSS for specific versions you can use conditional comments for just about any type of content you want to exclude or include for various versions. Conditional comments work in IE versions 5 and newer. You can be as specific as you need to like IE 5.01 and 5.5.]]></description>
			<content:encoded><![CDATA[<p>We were once sold on the Idea that we needed true CSS hacks to make stuff work in IE we were also sold on browser detection with JavaScript for other content.</p>
<p>I have been using conditional comments for years now and this may seem like old news to some, To others this is refresher.</p>
<p>Conditional comments can do more than allow you to serve up different CSS for specific versions you can use conditional comments for just about any type of content you want to exclude or include for various versions. Conditional comments work in IE versions 5 and newer. You can be as specific as you need to like IE 5.01 and 5.5.<span id="more-391"></span></p>
<p>The syntax is simple&#8230;<br />
&lt;!- -[if IE 6]&gt;<br />
Special instructions for IE 6 here<br />
&lt;![endif]- -&gt;<br />
Variations are as follows&#8230;<br />
[if IE]<br />
[if IE 7]<br />
[if gte IE 5]<br />
[if lt IE 6]<br />
[if lte IE 5.5]<br />
[if gt IE 6]<br />
[if !IE]<br />
[if !(IE 7)]<br />
[if (gt IE 5)&amp;(lt IE 7)]<br />
[if (IE 6)|(IE 7)]</p>
<p>All standard comments are wrapped in &lt;!- &#8211; and &#8211; -&gt;<br />
All conditional comments fall within a standard comment and have an if block wrapped in square brackets [if ] [endif]</p>
<ul>
<li>!: not equal</li>
<li>&amp;: and</li>
<li>|: or</li>
<li>gt: greater than</li>
<li>gte: greater than or equal to</li>
<li>lt: less than</li>
<li>lte: less than or equal to</li>
</ul>
<p>They are just comments to all other browsers and just like comments they can be anywhere comments can be&#8230; in the Head or body. Places these comments don&#8217;t work are inside CSS files or script files.</p>
<p>to server up diff CSS for IE you can either use embedded CSS as in &lt;style type=&#8221;text/css&#8221;&gt;&lt;/style&gt; or link to an external CSS file as in &lt;link type=&#8221;text/css&#8221; rel=&#8221;stylesheet&#8221; media=&#8221;all&#8221; href=&#8221;#&#8221; /&gt;</p>
<p>Same for script files&#8230;<br />
&lt;script type=&#8221;text/javascript&#8221;&gt;&lt;/script&gt; or &lt;script type=&#8221;text/javascript&#8221; src=&#8221;#&#8221;&gt;&lt;/script&gt;</p>
<p>IE also has a JScript version of this for using inside JavaScript files.</p>
<p>/*@cc_on @*/<br />
/*@if (@_win32)<br />
IE specific JavaScript goes here.<br />
/*@end @*/</p>
]]></content:encoded>
			<wfw:commentRss>http://www.redsgn.com/2009/06/30/damn-that-ie-how-to-target-internet-explorer-for-css-content-and-scripts/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<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>
