<?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; css</title>
	<atom:link href="http://www.nvncbl.com/tagged/css/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>Center Align a UL Menu</title>
		<link>http://www.nvncbl.com/2010/02/center-align-a-ul-menu/</link>
		<comments>http://www.nvncbl.com/2010/02/center-align-a-ul-menu/#comments</comments>
		<pubDate>Fri, 19 Feb 2010 19:08:22 +0000</pubDate>
		<dc:creator>Antonio</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[center]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[display]]></category>
		<category><![CDATA[inline]]></category>
		<category><![CDATA[ul]]></category>
		<category><![CDATA[unordered list]]></category>

		<guid isPermaLink="false">http://www.nvncbl.com/?p=494</guid>
		<description><![CDATA[The task of center-aligning an unordered list (which can&#8217;t have its width explicitly set) via CSS comes up every now and then.  Logging it here for later.
&#8220;For a start you could text-align: center the ul inside the #ul_container_div and display: inline the li instead of floating them left.&#8221;

#ul_container_div&#123; width:100%; text-align:center; &#125;
#ul_container_div li &#123; display: [...]]]></description>
			<content:encoded><![CDATA[<p>The task of center-aligning an unordered list (which can&#8217;t have its width explicitly set) via CSS comes up every now and then.  Logging it here for later.</p>
<p>&#8220;For a start you could text-align: center the ul inside the #ul_container_div and display: inline the li instead of floating them left.&#8221;</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #cc00cc;">#ul_container_div</span><span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;"><span style="color: #cc66cc;">100</span>%</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">text-align</span><span style="color: #00AA00;">:</span><span style="color: #993333;">center</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#ul_container_div</span> li <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">inline</span><span style="color: #00AA00;">;</span>  <span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>Source of knowledge: <a class="external" href="http://archivist.incutio.com/viewlist/css-discuss/59041">http://archivist.incutio.com/viewlist/css-discuss/59041</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.nvncbl.com/2010/02/center-align-a-ul-menu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<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>
