<?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>Semantic HTML &#187; semantic css</title>
	<atom:link href="http://semantichtml.org/tag/semantic-css/feed/" rel="self" type="application/rss+xml" />
	<link>http://semantichtml.org</link>
	<description>Semantic Markup and Practices</description>
	<lastBuildDate>Fri, 21 Jan 2011 02:48:06 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
<image>
<link>http://semantichtml.org</link>
<url>http://semantichtml.org/wp-content/plugins/maxblogpress-favicon/icons/favicon-42.ico</url>
<title>Semantic HTML</title>
</image>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>Semantic CSS</title>
		<link>http://semantichtml.org/semantics/semantic-css/</link>
		<comments>http://semantichtml.org/semantics/semantic-css/#comments</comments>
		<pubDate>Tue, 25 Dec 2007 00:16:11 +0000</pubDate>
		<dc:creator>Martin</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[Semantics]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[semantic css]]></category>

		<guid isPermaLink="false">http://semantichtml.org/semantics/semantic-css/</guid>
		<description><![CDATA[Cascading Style Sheets in themselves are semantical in nature. The whole reason why CSS is so powerful is due to their cascading nature. Rules lower in the CSS code are actually higher in value, hence the term cascading. And that means rules supplied in your inline style attributes will supersede those within an external style [...]]]></description>
			<content:encoded><![CDATA[<p>Cascading Style Sheets in themselves are semantical in nature. The whole reason why CSS is so powerful is due to their cascading nature. Rules lower in the CSS code are actually higher in value, hence the term cascading. And that means rules supplied in your inline style attributes will supersede those within an external style sheet.</p>
<p><strong> Why?</strong></p>
<p>Because of its &#8220;rule execution&#8221; format, those rules cascading from the top of your styles will not overwrite style blocks that are lower (after) them in the style declaration. But the <em>last</em> rule will carry the most value, or weight &#8211; thereby generating the final style.</p>
<p>So let&#8217;s say you have the following CSS rules in an external style sheet:</p>
<p><code>* {margin: 0; padding: 0;}</code></p>
<p>And you declare a h1 tag to present as such:</p>
<p><code>h1 {margin: 0 0 2em 0;} </code></p>
<p>So your CSS file looks like this:</p>
<p><code>* {margin: 0; padding: 0;}<br />
h1 {margin: 0 0 2em 0;}</code></p>
<p>Do you see why the h1 will have a bottom margin of -2em? Good. Now what if you had an inline style (although you don&#8217;t do you? I mean, you want to separate content from presentation as much as possible, right?) for your h1 tag within your webpage:</p>
<p><code>&lt;h1 style="margin-bottom: -2em"&gt;Heading&lt;/h1&gt;<!--formatted--></code></p>
<p>Due to the cascading effect, that h1 tag will have it&#8217;s bottom margin raised up to -2, because of its inline style. That&#8217;s the power of CSS, and that&#8217;s all for now!</p>

<span class="slashdigglicious">
<a href="http://slashdot.org/bookmark.pl?url=http%3A%2F%2Fsemantichtml.org%2Fsemantics%2Fsemantic-css%2F&amp;title=Semantic+CSS" title="Slashdot It!"><img src="http://slashdot.org/favicon.ico" height="16" width="16" alt="[Slashdot]" /></a>
<a href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fsemantichtml.org%2Fsemantics%2Fsemantic-css%2F&amp;title=Semantic+CSS" title="Digg This Story"><img src="http://digg.com/favicon.ico" width="16" height="16" alt="[Digg]" /></a>
<a href="http://reddit.com/submit?url=http%3A%2F%2Fsemantichtml.org%2Fsemantics%2Fsemantic-css%2F&amp;title=Semantic+CSS" title="Reddit"><img src="http://reddit.com/favicon.ico" width="16" height="16" alt="[Reddit]" /></a>
<a href="http://del.icio.us/post?url=http%3A%2F%2Fsemantichtml.org%2Fsemantics%2Fsemantic-css%2F&amp;title=Semantic+CSS" title="Save to del.icio.us" onclick="window.open('http://del.icio.us/post?v=4&amp;noui&amp;jump=close&amp;url=http%3A%2F%2Fsemantichtml.org%2Fsemantics%2Fsemantic-css%2F&amp;title=Semantic+CSS', 'delicious', 'toolbar=no,width=700,height=400'); return false;"><img src="http://images.del.icio.us/static/img/delicious.small.gif" width="16" height="16" alt="[del.icio.us]" /></a>
<a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fsemantichtml.org%2Fsemantics%2Fsemantic-css%2F" title="Share on Facebook"><img src="http://www.facebook.com/favicon.ico" width="16" height="16" alt="[Facebook]" /></a>
<a href="http://technorati.com/faves?add=http%3A%2F%2Fsemantichtml.org%2Fsemantics%2Fsemantic-css%2F" title="Add to my Technorati Favorites"><img src="http://technorati.com/favicon.ico" width="16" height="16" alt="[Technorati]" /></a>
<a href="http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk=http%3A%2F%2Fsemantichtml.org%2Fsemantics%2Fsemantic-css%2F&amp;title=Semantic+CSS" title="Save to Google Bookmarks"><img src="http://www.google.com/favicon.ico" width="16" height="16" alt="[Google]" /></a>
<a href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fsemantichtml.org%2Fsemantics%2Fsemantic-css%2F&amp;title=Semantic+CSS" title="Stumble it!"><img src="http://www.stumbleupon.com/favicon.ico" width="16" height="16" alt="[StumbleUpon]" /></a>
</span><img src="http://semantichtml.org/?ak_action=api_record_view&id=24&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://semantichtml.org/semantics/semantic-css/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
	</channel>
</rss>
