<?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>Solution Log &#124; Antonio David - NVNCBL &#187; indent</title>
	<atom:link href="http://www.nvncbl.com/tagged/indent/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.nvncbl.com</link>
	<description>A place to log my programming solutions for future reference</description>
	<lastBuildDate>Mon, 17 May 2010 21:39:17 +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>CSS Neatness Technique</title>
		<link>http://www.nvncbl.com/2009/01/css-neatness-technique/</link>
		<comments>http://www.nvncbl.com/2009/01/css-neatness-technique/#comments</comments>
		<pubDate>Sun, 04 Jan 2009 20:39:30 +0000</pubDate>
		<dc:creator>Antonio</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[indent]]></category>

		<guid isPermaLink="false">http://www.nvncbl.com/?p=150</guid>
		<description><![CDATA[ We&#8217;ve all seen long and unmanageable CSS files, sometimes hundreds or even thousands of lines long.   Finding the exact declaration you&#8217;re looking for can be a royal pain in the arse.   It&#8217;s worse when style declarations for a particular element can be found more than once in a file, such as when [...]]]></description>
			<content:encoded><![CDATA[<p>
<a href="http://www.nvncbl.com/wp-content/gallery/articles/css-neatness-technique_0.jpg" title="" class="shutterset_singlepic15" >
	<img class="ngg-singlepic ngg-right" src="http://www.nvncbl.com/wp-content/gallery/cache/15__80x80_css-neatness-technique_0.jpg" alt="css-neatness-technique_0.jpg" title="css-neatness-technique_0.jpg" />
</a>
 We&#8217;ve all seen long and unmanageable CSS files, sometimes hundreds or even thousands of lines long.   Finding the exact declaration you&#8217;re looking for can be a royal pain in the arse.   It&#8217;s worse when style declarations for a particular element can be found more than once in a file, such as when the coder wants to separate structural styling from say typography styling.</p>
<p><span id="more-150"></span></p>
<p>The technique is simply to:</p>
<blockquote><p>&#8220;Indent the CSS code in the same way corresponding elements are structurally indented in the HTML.&#8221;</p></blockquote>
<p>&#8220;How amazing&#8221;, I thought, as the idea of indenting CSS declarations never occurred to me.  And yes, please keep structural and typography styling together in the same declaration.</p>
<p>I haven&#8217;t coded anything using this method yet (I only learnt of it today!), but I think it will make my CSS coding exponentially more manageable.   If you have your own special way of organizing CSS files, do tell.   I&#8217;m sure we&#8217;d all like to hear it.   For now, indenting seems to be the way to go.</p>
<p>Image credit: <a title="Image Credit" href="http://www.dryicons.com" class="external">http://www.dryicons.com</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.nvncbl.com/2009/01/css-neatness-technique/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
