<?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>Seventeen Pencils &#187; CSS</title>
	<atom:link href="http://www.17pencils.com/category/css/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.17pencils.com</link>
	<description>Brought to you by Stephen Davis</description>
	<lastBuildDate>Tue, 15 Sep 2009 17:35:43 +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>Navigation Methods, Etcetera</title>
		<link>http://www.17pencils.com/2009/07/navigation-methods-etcetera/</link>
		<comments>http://www.17pencils.com/2009/07/navigation-methods-etcetera/#comments</comments>
		<pubDate>Thu, 09 Jul 2009 03:56:58 +0000</pubDate>
		<dc:creator>Stephen</dc:creator>
				<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://www.17pencils.com/?p=33</guid>
		<description><![CDATA[I&#8217;ve recently begun to favor slightly different ways of layout out a main navigation div in CSS. I had been using padding on my a tags, and padding on a span tag inside them. However, line-height seems to be a viable method of achieving the same effect with less code. It generally seems IE-safe too, [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve recently begun to favor slightly different ways of layout out a main navigation div in CSS. I had been using padding on my <code>a</code> tags, and padding on a <code>span</code> tag inside them. However, <code>line-height</code> seems to be a viable method of achieving the same effect with less code. It generally seems IE-safe too, although you have to be a bit verbose for the poor thing.</p>
<p>If you do use a <code>span</code> inside your <code>a</code> (for additional background images and such), you&#8217;ll need to either re-declare the same <code>line-height</code> on it, or display it as a block-level element, either one of which is easier than trying to divide up your padding correctly around your text. But in some cases, using the block-level option may cause IE&#8217;s box model to freak out, rendering your <code>a</code>/<code>li</code> elements block-level as well. If so, float the <code>span</code>. This, however, may hide the background of the <code>span</code>, in which case either <code>height</code> or <code>zoom</code> must be added to the parent <code>a</code>/<code>li</code> tags. <img src='http://www.17pencils.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> </p>
<p>After writing this out, it sure doesn&#8217;t look easier, but at least my code is pretty&#8230; thanks to <a href="http://www.nathanhanna.com/" target="_blank">Nate Hanna</a> for (non-monetary) tips!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.17pencils.com/2009/07/navigation-methods-etcetera/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
