<?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>CSS Tutorial &#187; horizontal rule</title>
	<atom:link href="http://www.csstutorial.net/tag/horizontal-rule/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.csstutorial.net</link>
	<description>CSS Tutorial</description>
	<lastBuildDate>Mon, 30 Jan 2012 06:00:15 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1</generator>
		<item>
		<title>Styling a Horizontal Rule with CSS</title>
		<link>http://www.csstutorial.net/2010/06/styling-a-horizontal-rule-with-css/</link>
		<comments>http://www.csstutorial.net/2010/06/styling-a-horizontal-rule-with-css/#comments</comments>
		<pubDate>Sun, 20 Jun 2010 13:05:08 +0000</pubDate>
		<dc:creator>Andrea Barnett</dc:creator>
				<category><![CDATA[CSS Basics]]></category>
		<category><![CDATA[CSS Misc]]></category>
		<category><![CDATA[Killer CSS Tips and Tricks]]></category>
		<category><![CDATA[horizontal rule]]></category>
		<category><![CDATA[hr]]></category>

		<guid isPermaLink="false">http://www.csstutorial.net/?p=821</guid>
		<description><![CDATA[A quick and easy way to insert a dividing line into a website is with a horizontal rule, the hr tag.]]></description>
			<content:encoded><![CDATA[<p>A quick and easy way to insert a dividing line into a website is with a horizontal rule, the hr tag.</p>
<p>This horizontal rule</p>
<hr style="color: #f00; background: #f00; width: 75%; height: 5px;">
<p>was created by the following inline CSS:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;">&lt;hr style<span style="color: #00AA00;">=</span><span style="color: #ff0000;">&quot;color: #f00; background: #f00; width: 75%; height: 5px;&quot;</span><span style="color: #00AA00;">&gt;</span></pre></div></div>

<p>It could also be styled in your internal or external stylesheet (which is usually the better approach):</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;">hr <span style="color: #00AA00;">&#123;</span>
     <span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#f00</span><span style="color: #00AA00;">;</span>
     <span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#f00</span><span style="color: #00AA00;">;</span> 
     <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;"><span style="color: #cc66cc;">75</span>%</span><span style="color: #00AA00;">;</span> 
     <span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span> <span style="color: #933;">5px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>Note that color AND background-color are applied.  This is necessary, as some browsers use the background-color, others (IE) the color element to apply color to the rule.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.csstutorial.net/2010/06/styling-a-horizontal-rule-with-css/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

