<?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: CSS Absolute Positioning</title>
	<atom:link href="http://www.kyleschaeffer.com/best-practices/css-absolute-positioning/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.kyleschaeffer.com/best-practices/css-absolute-positioning/</link>
	<description></description>
	<lastBuildDate>Wed, 03 Mar 2010 19:26:47 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Kyle</title>
		<link>http://www.kyleschaeffer.com/best-practices/css-absolute-positioning/comment-page-1/#comment-13817</link>
		<dc:creator>Kyle</dc:creator>
		<pubDate>Sat, 06 Feb 2010 20:52:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.kyleschaeffer.com/?p=201#comment-13817</guid>
		<description>Fred, I would only recommend using absolute positioning for elements of your site design that are fixed in size (header images, menus, navigation, etc.).  If you&#039;re applying an absolute position to an element that has dynamic content, your best bet is probably to use jQuery or other client script to position and resize your content.</description>
		<content:encoded><![CDATA[<p>Fred, I would only recommend using absolute positioning for elements of your site design that are fixed in size (header images, menus, navigation, etc.).  If you&#8217;re applying an absolute position to an element that has dynamic content, your best bet is probably to use jQuery or other client script to position and resize your content.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: fred</title>
		<link>http://www.kyleschaeffer.com/best-practices/css-absolute-positioning/comment-page-1/#comment-13815</link>
		<dc:creator>fred</dc:creator>
		<pubDate>Sat, 06 Feb 2010 18:34:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.kyleschaeffer.com/?p=201#comment-13815</guid>
		<description>Hi there,

you said &quot;The easiest way to avoid this is to set the parent element’s height to a fixed value&quot; and then you set a height of 3em to the container div, which actually seems to be a very easy way :) but real world often isn&#039;t that simple. Do you know how to expand the container div height dynamically? 

Thanks,
Fred</description>
		<content:encoded><![CDATA[<p>Hi there,</p>
<p>you said &#8220;The easiest way to avoid this is to set the parent element’s height to a fixed value&#8221; and then you set a height of 3em to the container div, which actually seems to be a very easy way <img src='http://www.kyleschaeffer.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  but real world often isn&#8217;t that simple. Do you know how to expand the container div height dynamically? </p>
<p>Thanks,<br />
Fred</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: cris</title>
		<link>http://www.kyleschaeffer.com/best-practices/css-absolute-positioning/comment-page-1/#comment-12898</link>
		<dc:creator>cris</dc:creator>
		<pubDate>Sun, 04 Oct 2009 08:58:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.kyleschaeffer.com/?p=201#comment-12898</guid>
		<description>Interesting stuff, I&#039;ve read several posts and it has cleared up alot of confusion about CSS.

Ty, cris</description>
		<content:encoded><![CDATA[<p>Interesting stuff, I&#8217;ve read several posts and it has cleared up alot of confusion about <acronym title="Cascading Style Sheets">CSS</acronym>.</p>
<p>Ty, cris</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kyle</title>
		<link>http://www.kyleschaeffer.com/best-practices/css-absolute-positioning/comment-page-1/#comment-12416</link>
		<dc:creator>Kyle</dc:creator>
		<pubDate>Thu, 21 May 2009 15:17:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.kyleschaeffer.com/?p=201#comment-12416</guid>
		<description>Hi, Ron.  Yes!  You can do that with a little CSS trick where you position the element to 50% left, and then you take away half of that element&#039;s width in order to center it (via a negative left margin).  It goes something like this:

.centeredElement { width: 400px; position: absolute; top: 50px; left: 50%; margin-left: -200px; }

As you can see, the &quot;centeredElement&quot; has a width of 400 pixels, and then we used the left margin to move the element 200 pixels to the left, thus centering the absolutely positioned element at 50% of it&#039;s parent.</description>
		<content:encoded><![CDATA[<p>Hi, Ron.  Yes!  You can do that with a little <acronym title="Cascading Style Sheets">CSS</acronym> trick where you position the element to 50% left, and then you take away half of that element&#8217;s width in order to center it (via a negative left margin).  It goes something like this:</p>
<p>.centeredElement { width: 400px; position: absolute; top: 50px; left: 50%; margin-left: -200px; }</p>
<p>As you can see, the &#8220;centeredElement&#8221; has a width of 400 pixels, and then we used the left margin to move the element 200 pixels to the left, thus centering the absolutely positioned element at 50% of it&#8217;s parent.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ron</title>
		<link>http://www.kyleschaeffer.com/best-practices/css-absolute-positioning/comment-page-1/#comment-12402</link>
		<dc:creator>ron</dc:creator>
		<pubDate>Sun, 17 May 2009 18:04:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.kyleschaeffer.com/?p=201#comment-12402</guid>
		<description>Hey, thanks for the great article. Is there anyway easy way to center the  tags while using the absolute value? 50% left or right starts from the edge of the item so it is not accurate if people are viewing at different sizes.

Thanks.</description>
		<content:encoded><![CDATA[<p>Hey, thanks for the great article. Is there anyway easy way to center the  tags while using the absolute value? 50% left or right starts from the edge of the item so it is not accurate if people are viewing at different sizes.</p>
<p>Thanks.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
