<?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>Smart red fox &#187; web designSmart red fox</title>
	<atom:link href="http://www.smartredfox.com/tag/web-design/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.smartredfox.com</link>
	<description>Smarter than your average bear</description>
	<lastBuildDate>Thu, 02 Feb 2012 21:18:15 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<meta name="generator" content="Obscure 2.0" />
		<item>
		<title>Centering absolutely positioned elements</title>
		<link>http://www.smartredfox.com/2008/03/centering-absolutely-positioned-elements/</link>
		<comments>http://www.smartredfox.com/2008/03/centering-absolutely-positioned-elements/#comments</comments>
		<pubDate>Fri, 14 Mar 2008 19:46:41 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[css]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[centering]]></category>
		<category><![CDATA[web design]]></category>

		<guid isPermaLink="false">http://www.smartredfox.com/?p=3</guid>
		<description><![CDATA[Having problems setting auto margins on an absolutely positioned element? Me too&#8230; until I found that I was missing one simple bit of css. When centering an absolutely positioned element horizontally you have to specify the left and right properties as zero for this to work! I found the solution here but I thought I&#8217;d note it down for all those people that may not have come across this themselves. Somehow it seems to have passed me by&#8230; Auto-margins can &#8230; <a href="http://www.smartredfox.com/2008/03/centering-absolutely-positioned-elements/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Having problems setting auto margins on an absolutely positioned element? Me too&#8230; until I found that I was missing one simple bit of css.</p>
<p>When centering an absolutely positioned element horizontally you have to specify the left and right properties as zero for this to work!</p>
<p>I found the <a href="http://css-discuss.incutio.com/?page=CenteringBlockElement" title="Incutio.com">solution here</a> but I thought I&#8217;d note it down for all those people that may not have come across this themselves. Somehow it seems to have passed me by&#8230;</p>
<blockquote><p> Auto-margins can center an absolutely positioned element inside its containing block.</p>
<p>For this to work, you have to</p>
<ul>
<li> specify the offset properties (of opposite sides) with same values, i.e. by setting  <tt> left:0; right:0;</tt> for horizontal centering and <tt> top:0; bottom:0;</tt> for vertical centering,</li>
<li> set dimensions along the axis you want to center along,</li>
<li> enable auto-margins along the axis you want to center along.</li>
</ul>
<p>Internet Explorer note: IE6 can not relate absolutely positioned elements to opposite sides of containing block, so only one of the offset properties is used. This brings the element out of balance and renders auto-margins useless.</p></blockquote>
<p>I hope someone finds this useful&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.smartredfox.com/2008/03/centering-absolutely-positioned-elements/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

