<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: How to align center a DIV with no width declared</title>
	<atom:link href="http://www.kensfi.com/how-to-align-center-a-div-with-no-width-declared/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.kensfi.com/how-to-align-center-a-div-with-no-width-declared/</link>
	<description>Human crawler of the web.</description>
	<lastBuildDate>Fri, 20 Jan 2012 18:15:57 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Andrei</title>
		<link>http://www.kensfi.com/how-to-align-center-a-div-with-no-width-declared/comment-page-1/#comment-33034</link>
		<dc:creator>Andrei</dc:creator>
		<pubDate>Mon, 25 Apr 2011 15:10:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.kensfi.com/?p=2044#comment-33034</guid>
		<description>I have floated elements inside that div and your solution does not work. It just stays to the left.</description>
		<content:encoded><![CDATA[<p>I have floated elements inside that div and your solution does not work. It just stays to the left.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ken</title>
		<link>http://www.kensfi.com/how-to-align-center-a-div-with-no-width-declared/comment-page-1/#comment-26497</link>
		<dc:creator>Ken</dc:creator>
		<pubDate>Sun, 20 Feb 2011 18:44:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.kensfi.com/?p=2044#comment-26497</guid>
		<description>you&#039;re right SoniX, the center HTML tag is doing the job. Less code, valid (X)HTML and a more elegant method. Thanks dude ;)

Who cares is deprecated? 

I attached it to the original article just in case someone is looking for it :)</description>
		<content:encoded><![CDATA[<p>you&#8217;re right SoniX, the center HTML tag is doing the job. Less code, valid (X)HTML and a more elegant method. Thanks dude ;)</p>
<p>Who cares is deprecated? </p>
<p>I attached it to the original article just in case someone is looking for it :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael Milo</title>
		<link>http://www.kensfi.com/how-to-align-center-a-div-with-no-width-declared/comment-page-1/#comment-23617</link>
		<dc:creator>Michael Milo</dc:creator>
		<pubDate>Fri, 21 Jan 2011 10:49:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.kensfi.com/?p=2044#comment-23617</guid>
		<description>SoniX:

&quot;The center element is deprecated.&quot; - Thats why. By the way it wouldn&#039;t work, for the reasons explained by Ken.</description>
		<content:encoded><![CDATA[<p>SoniX:</p>
<p>&#8220;The center element is deprecated.&#8221; &#8211; Thats why. By the way it wouldn&#8217;t work, for the reasons explained by Ken.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Asta</title>
		<link>http://www.kensfi.com/how-to-align-center-a-div-with-no-width-declared/comment-page-1/#comment-23460</link>
		<dc:creator>Asta</dc:creator>
		<pubDate>Wed, 19 Jan 2011 17:47:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.kensfi.com/?p=2044#comment-23460</guid>
		<description>Hi, 
ul element cannot be inside span. So no HTML validation...</description>
		<content:encoded><![CDATA[<p>Hi,<br />
ul element cannot be inside span. So no HTML validation&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ken</title>
		<link>http://www.kensfi.com/how-to-align-center-a-div-with-no-width-declared/comment-page-1/#comment-10161</link>
		<dc:creator>Ken</dc:creator>
		<pubDate>Tue, 20 Jul 2010 14:43:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.kensfi.com/?p=2044#comment-10161</guid>
		<description>&lt;p&gt;Sonix, my dear old friend, how is it going? :)&lt;/p&gt;
&lt;p&gt;From what I know, you can&#039;t center a div with no width declared even when using align=&quot;center&quot;. The explanation is that the browser don&#039;t know where to place it on the page since there is no width on your div. It fails basically to calculate the center of it.&lt;/p&gt;
&lt;p&gt;If you have something in your mind drop it here and let&#039;s see, maybe is working :)&lt;/p&gt;
&lt;p&gt;Cheers! :)&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;</description>
		<content:encoded><![CDATA[<p>Sonix, my dear old friend, how is it going? :)</p>
<p>From what I know, you can&#8217;t center a div with no width declared even when using align=&#8221;center&#8221;. The explanation is that the browser don&#8217;t know where to place it on the page since there is no width on your div. It fails basically to calculate the center of it.</p>
<p>If you have something in your mind drop it here and let&#8217;s see, maybe is working :)</p>
<p>Cheers! :)</p>
<p> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SoniX</title>
		<link>http://www.kensfi.com/how-to-align-center-a-div-with-no-width-declared/comment-page-1/#comment-10160</link>
		<dc:creator>SoniX</dc:creator>
		<pubDate>Tue, 20 Jul 2010 14:26:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.kensfi.com/?p=2044#comment-10160</guid>
		<description>Well my friend, but why not use the good old &#039;&lt;center&gt;&#039; to enclose the div?</description>
		<content:encoded><![CDATA[<p>Well my friend, but why not use the good old &#8216;&lt;center&gt;&#8217; to enclose the div?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ken</title>
		<link>http://www.kensfi.com/how-to-align-center-a-div-with-no-width-declared/comment-page-1/#comment-8039</link>
		<dc:creator>Ken</dc:creator>
		<pubDate>Sat, 15 May 2010 22:00:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.kensfi.com/?p=2044#comment-8039</guid>
		<description>&lt;p&gt;&lt;cite class=&quot;fn&quot;&gt;AJa, why you need to float left the list items?&lt;/cite&gt;&lt;/p&gt;</description>
		<content:encoded><![CDATA[<p><cite class="fn">AJa, why you need to float left the list items?</cite></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: AJay</title>
		<link>http://www.kensfi.com/how-to-align-center-a-div-with-no-width-declared/comment-page-1/#comment-8038</link>
		<dc:creator>AJay</dc:creator>
		<pubDate>Sat, 15 May 2010 21:57:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.kensfi.com/?p=2044#comment-8038</guid>
		<description>Hmm but in most cases, there is more than one LI which would need a float:left declaration. If this is the case, it doesnt work as the float: left in the LI&#039;s will force the list to the left of the page. So what if your trying to center a ul list that is, for example a menu that needs the float: left property for it&#039;s LI&#039;s?</description>
		<content:encoded><![CDATA[<p>Hmm but in most cases, there is more than one LI which would need a float:left declaration. If this is the case, it doesnt work as the float: left in the LI&#8217;s will force the list to the left of the page. So what if your trying to center a ul list that is, for example a menu that needs the float: left property for it&#8217;s LI&#8217;s?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

