<?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>Kumail.H.T`s Blog &#187; CSS</title>
	<atom:link href="http://www.kumailht.com/blog/category/css/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.kumailht.com/blog</link>
	<description>Its a blog, just like a million others.</description>
	<lastBuildDate>Fri, 02 Jul 2010 18:59:20 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Do we really need a #container to center CSS layouts? I think not!</title>
		<link>http://www.kumailht.com/blog/css/do-we-really-need-a-container-to-center-css-layouts-i-think-not/</link>
		<comments>http://www.kumailht.com/blog/css/do-we-really-need-a-container-to-center-css-layouts-i-think-not/#comments</comments>
		<pubDate>Mon, 11 Jan 2010 09:11:41 +0000</pubDate>
		<dc:creator>kumailht</dc:creator>
				<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://www.kumailht.com/blog/?p=993</guid>
		<description><![CDATA[From the very beginning, I was taught that a container div should be used to center layouts. Apparently, the body element can itself be used to center the layout removing the need to use an extra wrapper. Here is how we currently center layouts: #container { width:990px; margin:0 auto; } but the container is not [...]]]></description>
			<content:encoded><![CDATA[<p>From the very beginning, I was taught that a container div should be used to center layouts. Apparently, the body element can itself be used to center the layout removing the need to use an extra wrapper.</p>
<p><span id="more-993"></span></p>
<p>Here is how we currently center layouts:<br />
<code><br />
#container {<br />
width:990px;<br />
margin:0 auto;<br />
}<br />
</code></p>
<p>but the container is not required at all so why use it? Here is how I center layouts:</p>
<p><code> body {<br />
width:990px;<br />
margin:0 auto;<br />
}<br />
</code></p>
<p>As for the Background image, you can use the &#8220;html&#8221; element for that.</p>
<h5><strong>Check out the working <a href="http://www.kumailht.com/test/containerless/">example</a>.</strong></h5>
<p>There has to be a valid reason for not using the body tag. Having learnt CSS just a few months back, I am fairly new to the language and might be missing something.</p>
<p>What do you think? Is the #container useless?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.kumailht.com/blog/css/do-we-really-need-a-container-to-center-css-layouts-i-think-not/feed/</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
	</channel>
</rss>
