<?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>Doctyper &#187; Quick Tip</title>
	<atom:link href="http://doctyper.com/archives/category/quick-tip/feed/" rel="self" type="application/rss+xml" />
	<link>http://doctyper.com</link>
	<description>Doctyper is the website of Richard Herrera, a front-end developer with a strong commitment to the web standards movement.</description>
	<lastBuildDate>Sat, 31 Jul 2010 00:17:23 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Substitute :last-child for :first-child for IE 7 support</title>
		<link>http://doctyper.com/archives/200912/substitute-last-child-for-first-child-for-ie-7-support/</link>
		<comments>http://doctyper.com/archives/200912/substitute-last-child-for-first-child-for-ie-7-support/#comments</comments>
		<pubDate>Tue, 01 Dec 2009 23:05:29 +0000</pubDate>
		<dc:creator>doctyper</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Quick Tip]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://doctyper.com/?p=56</guid>
		<description><![CDATA[Consider the following:
ul li {
&#160;&#160; display: inline;
&#160;&#160; margin-right: 10px;
&#160;&#160; padding-right: 10px;
&#160;&#160; border-right: 1px solid red;
}
ul li:last-child {
&#160;&#160; margin-right: 0;
&#160;&#160; padding-right: 0;
&#160;&#160; border-right: 0;
}
This bit of CSS would give you perfect line separators in IE8+. But since IE 7 supports the :first-child pseudo-class, we can do one better:
ul li {
&#160;&#160; display: inline;
&#160;&#160; margin-left: 10px;
&#160;&#160; padding-left: 10px;
&#160;&#160; [...]]]></description>
			<content:encoded><![CDATA[<p>Consider the following:</p>
<p><code>ul li {<br />
&nbsp;&nbsp; display: inline;<br />
&nbsp;&nbsp; margin-right: 10px;<br />
&nbsp;&nbsp; padding-right: 10px;<br />
&nbsp;&nbsp; border-right: 1px solid red;<br />
}</code></p>
<p><code>ul li:last-child {<br />
&nbsp;&nbsp; margin-right: 0;<br />
&nbsp;&nbsp; padding-right: 0;<br />
&nbsp;&nbsp; border-right: 0;<br />
}</code></p>
<p>This bit of CSS would give you perfect line separators in IE8+. But since IE 7 supports the :first-child pseudo-class, we can do one better:</p>
<p><code>ul li {<br />
&nbsp;&nbsp; display: inline;<br />
&nbsp;&nbsp; margin-left: 10px;<br />
&nbsp;&nbsp; padding-left: 10px;<br />
&nbsp;&nbsp; border-left: 1px solid red;<br />
}</code></p>
<p><code>ul li:first-child {<br />
&nbsp;&nbsp; margin-left: 0;<br />
&nbsp;&nbsp; padding-left: 0;<br />
&nbsp;&nbsp; border-left: 0;<br />
}</code></p>
<p>Same* result, with more browser support.<br />
<small>*Substitute for &#8220;sane&#8221;.</small></p>
]]></content:encoded>
			<wfw:commentRss>http://doctyper.com/archives/200912/substitute-last-child-for-first-child-for-ie-7-support/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>RGBa makes a great debugging tool</title>
		<link>http://doctyper.com/archives/200912/rgba-makes-a-great-debugging-tool/</link>
		<comments>http://doctyper.com/archives/200912/rgba-makes-a-great-debugging-tool/#comments</comments>
		<pubDate>Tue, 01 Dec 2009 22:31:09 +0000</pubDate>
		<dc:creator>doctyper</dc:creator>
				<category><![CDATA[(X)HTML]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Quick Tip]]></category>

		<guid isPermaLink="false">http://doctyper.com/?p=48</guid>
		<description><![CDATA[With 24 Ways pushing RGBa into the foreground today, I thought I&#8217;d share a quick debugging tip. Using RGBa can help while you&#8217;re debugging element positioning. For the adventurous, combine with a debug class:
.debug {
&#160;&#160;background: rgba(255, 0, 0, 0.5);
}
]]></description>
			<content:encoded><![CDATA[<p>With <a href="http://24ways.org/2009/working-with-rgba-colour">24 Ways</a> pushing RGBa into the foreground today, I thought I&#8217;d share a quick debugging tip. Using RGBa can help while you&#8217;re debugging element positioning. For the adventurous, combine with a debug class:</p>
<p><code>.debug {<br />
&nbsp;&nbsp;background: rgba(255, 0, 0, 0.5);<br />
}</code></p>
]]></content:encoded>
			<wfw:commentRss>http://doctyper.com/archives/200912/rgba-makes-a-great-debugging-tool/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
