<?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>The Infinite Loop - Beginner&#039;s SEO, Beginner C# &#38; JQuery Tutorials &#187; centering a wrapper in ie</title>
	<atom:link href="http://theinfiniteloopblog.com/tag/centering-a-wrapper-in-ie/feed/" rel="self" type="application/rss+xml" />
	<link>http://theinfiniteloopblog.com</link>
	<description>Problem. Problem Solved. Loop. - The life of a programmer</description>
	<lastBuildDate>Wed, 17 Aug 2011 15:29:45 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
		<item>
		<title>Centering a Div in IE</title>
		<link>http://theinfiniteloopblog.com/xhtmlcss/centering-a-div-in-ie/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=centering-a-div-in-ie</link>
		<comments>http://theinfiniteloopblog.com/xhtmlcss/centering-a-div-in-ie/#comments</comments>
		<pubDate>Fri, 19 Jun 2009 01:59:33 +0000</pubDate>
		<dc:creator>Scott</dc:creator>
				<category><![CDATA[XHTML/CSS]]></category>
		<category><![CDATA[centering a container in ie]]></category>
		<category><![CDATA[centering a div in ie]]></category>
		<category><![CDATA[centering a wrapper in ie]]></category>
		<category><![CDATA[centering in ie]]></category>
		<category><![CDATA[fixing ie css]]></category>
		<category><![CDATA[ie centering]]></category>
		<category><![CDATA[ie css]]></category>
		<category><![CDATA[ie not centered]]></category>

		<guid isPermaLink="false">http://scottmoniz.com/programmingBlog/?p=180</guid>
		<description><![CDATA[Little quick tip. This is mentioned in my basic css layout tutorial, however, im making a seperate blog post, because it is important. If you have a div and you want it centered, you may do this with margin: 0 auto, applying auto margin to left and right. This doesnt really work in IE. If [...]]]></description>
			<content:encoded><![CDATA[
<!-- ALL ADSENSE ADS DISABLED -->
<p>Little quick tip. This is mentioned in my basic css layout tutorial, however, im making a seperate blog post, because it is important. If you have a div and you want it centered, you may do this with margin: 0 auto, applying auto margin to left and right. This doesnt really work in IE.</p>
<p>If you are trying to center your container or wrapper div, this is how you do it.</p>
<p>Problem: IE doesn't properly center a wrapper or container div.<br />
Reason: IE actually uses text-align to center block level items as well as text.<br />
Solution: The solution is to apply text-align: center to the body tag, and offset this in the wrapper div.</p>
<p>&lt;div id="wrapper"&gt;</p>
<p>&lt;/div&gt;</p>
<p>And the css:<br />
body{text-align: center; /*centers in IE*/}</p>
<p>#wrapper{<br />
text-align: left; /*offset the ie center*/<br />
margin: 0 auto; /*centers in other browsers*/<br />
}</p>
<p>Enjoy.<br />
<!--adsense--></p>
]]></content:encoded>
			<wfw:commentRss>http://theinfiniteloopblog.com/xhtmlcss/centering-a-div-in-ie/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

