<?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: Absolute Positioning Inside Relative&#160;Positioning</title> <atom:link href="http://css-tricks.com/absolute-positioning-inside-relative-positioning/feed/" rel="self" type="application/rss+xml" /><link>http://css-tricks.com/absolute-positioning-inside-relative-positioning/</link> <description>Tips, Tricks, and Techniques on using Cascading Style Sheets.</description> <lastBuildDate>Mon, 22 Mar 2010 02:41:36 +0000</lastBuildDate> <generator>http://wordpress.org/?v=2.9.2</generator> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <item><title>By: Demus</title><link>http://css-tricks.com/absolute-positioning-inside-relative-positioning/#comment-50754</link> <dc:creator>Demus</dc:creator> <pubDate>Wed, 04 Feb 2009 22:50:11 +0000</pubDate> <guid isPermaLink="false">http://css-tricks.com/?p=791#comment-50754</guid> <description>This relationship between parent and child is not always good.Problem comes if you need to use relative parent and absolute positioned child outside the parent box with 100% width. This way child will get parents width and not &quot;normal&quot; width.I haven&#039;t found any workarounds for this. So if you have some ideas about canceling this rule from parent, please post. =)</description> <content:encoded><![CDATA[<p>This relationship between parent and child is not always good.</p><p>Problem comes if you need to use relative parent and absolute positioned child outside the parent box with 100% width. This way child will get parents width and not &#8220;normal&#8221; width.</p><p>I haven&#8217;t found any workarounds for this. So if you have some ideas about canceling this rule from parent, please post. =)</p> ]]></content:encoded> </item> <item><title>By: Emma</title><link>http://css-tricks.com/absolute-positioning-inside-relative-positioning/#comment-45719</link> <dc:creator>Emma</dc:creator> <pubDate>Wed, 07 Jan 2009 04:44:54 +0000</pubDate> <guid isPermaLink="false">http://css-tricks.com/?p=791#comment-45719</guid> <description>Definitely A-ha! Thank you!</description> <content:encoded><![CDATA[<p>Definitely A-ha! Thank you!</p> ]]></content:encoded> </item> <item><title>By: Flipbook Movies with jQuery &#124; Jon Raasch&#8217;s Blog</title><link>http://css-tricks.com/absolute-positioning-inside-relative-positioning/#comment-44583</link> <dc:creator>Flipbook Movies with jQuery &#124; Jon Raasch&#8217;s Blog</dc:creator> <pubDate>Tue, 30 Dec 2008 17:54:18 +0000</pubDate> <guid isPermaLink="false">http://css-tricks.com/?p=791#comment-44583</guid> <description>[...] The main CSS concept in these stylesheets is that we are using absolute positioning to stack all the images (or divs, etc.) within the flipbook div. Therefore we have to define absolute positioning for #flipbook IMG. Additionally, we have to define relative positioning for the wrapper div (#flipbook), so that the images position themselves within it and not a higher level wrapper. [...]</description> <content:encoded><![CDATA[<p>[...] The main CSS concept in these stylesheets is that we are using absolute positioning to stack all the images (or divs, etc.) within the flipbook div. Therefore we have to define absolute positioning for #flipbook IMG. Additionally, we have to define relative positioning for the wrapper div (#flipbook), so that the images position themselves within it and not a higher level wrapper. [...]</p> ]]></content:encoded> </item> <item><title>By: Audibly Inspired</title><link>http://css-tricks.com/absolute-positioning-inside-relative-positioning/#comment-42564</link> <dc:creator>Audibly Inspired</dc:creator> <pubDate>Fri, 19 Dec 2008 20:55:54 +0000</pubDate> <guid isPermaLink="false">http://css-tricks.com/?p=791#comment-42564</guid> <description>Good information to know!...but I have the same question as MeepMeep above me.When using a container that is relatively positioned and has absolutely positioned elements inside of it, the absolutely positioned elements are taken out of the normal flow of the container and the container renders &quot;empty&quot;. This is especially noticable when applying a background to the container and it no longer &quot;stretches&quot; to the appropriate size according the flow of the elements within.Tried using the &quot;clear fix&quot; as you do with floated elements but the absolute positioning seems to take them completely out of the flow, so that fix doesn&#039;t work.Any CSS masters have a solution? (please don&#039;t say floats)</description> <content:encoded><![CDATA[<p>Good information to know!</p><p>&#8230;but I have the same question as MeepMeep above me.</p><p>When using a container that is relatively positioned and has absolutely positioned elements inside of it, the absolutely positioned elements are taken out of the normal flow of the container and the container renders &#8220;empty&#8221;. This is especially noticable when applying a background to the container and it no longer &#8220;stretches&#8221; to the appropriate size according the flow of the elements within.</p><p>Tried using the &#8220;clear fix&#8221; as you do with floated elements but the absolute positioning seems to take them completely out of the flow, so that fix doesn&#8217;t work.</p><p>Any CSS masters have a solution? (please don&#8217;t say floats)</p> ]]></content:encoded> </item> <item><title>By: MeepMeep</title><link>http://css-tricks.com/absolute-positioning-inside-relative-positioning/#comment-41716</link> <dc:creator>MeepMeep</dc:creator> <pubDate>Fri, 12 Dec 2008 17:09:49 +0000</pubDate> <guid isPermaLink="false">http://css-tricks.com/?p=791#comment-41716</guid> <description>I have a relatively positioned div with no specific height, with an absolute div inside. I want the relative div to stretch to accommodate the absolute.This doesn&#039;t work, as the absolute div renders outside the relative one&#039;s boundaries.e.g. Here&#039;s a relative div, with an absolute inside it to display a red box.reldiv {position: relative; text-align: left; }absdiv {position: absolute; top: 200; left: 200; width: 50px; height: 50px; border: 1px solid #ff0000; }HiIs there any way around this?</description> <content:encoded><![CDATA[<p>I have a relatively positioned div with no specific height, with an absolute div inside. I want the relative div to stretch to accommodate the absolute.</p><p>This doesn&#8217;t work, as the absolute div renders outside the relative one&#8217;s boundaries.</p><p>e.g. Here&#8217;s a relative div, with an absolute inside it to display a red box.</p><p>reldiv {</p><p>position: relative;<br /> text-align: left;<br /> }</p><p>absdiv {</p><p>position: absolute;<br /> top: 200;<br /> left: 200;<br /> width: 50px;<br /> height: 50px;<br /> border: 1px solid #ff0000;<br /> }</p><p>Hi</p><p>Is there any way around this?</p> ]]></content:encoded> </item> <item><title>By: Yerel Se&#231;imler 2009</title><link>http://css-tricks.com/absolute-positioning-inside-relative-positioning/#comment-39476</link> <dc:creator>Yerel Se&#231;imler 2009</dc:creator> <pubDate>Tue, 18 Nov 2008 07:14:16 +0000</pubDate> <guid isPermaLink="false">http://css-tricks.com/?p=791#comment-39476</guid> <description>Well done </description> <content:encoded><![CDATA[<p>Well done</p> ]]></content:encoded> </item> <item><title>By: Markus</title><link>http://css-tricks.com/absolute-positioning-inside-relative-positioning/#comment-38816</link> <dc:creator>Markus</dc:creator> <pubDate>Tue, 11 Nov 2008 14:35:33 +0000</pubDate> <guid isPermaLink="false">http://css-tricks.com/?p=791#comment-38816</guid> <description>Didn&#039;t think this would happen, but: WOW! What an A-HA moment here :) Used it for nested lists to display them horizontal, works (as far as I can see now) great! Thanks!</description> <content:encoded><![CDATA[<p>Didn&#8217;t think this would happen, but: WOW! What an A-HA moment here :) Used it for nested lists to display them horizontal, works (as far as I can see now) great! Thanks!</p> ]]></content:encoded> </item> <item><title>By: Gazikent</title><link>http://css-tricks.com/absolute-positioning-inside-relative-positioning/#comment-38810</link> <dc:creator>Gazikent</dc:creator> <pubDate>Tue, 11 Nov 2008 13:40:35 +0000</pubDate> <guid isPermaLink="false">http://css-tricks.com/?p=791#comment-38810</guid> <description>Thx for this tut. I always have a problem with positioning using CSS. Now, I got more knowledge.</description> <content:encoded><![CDATA[<p>Thx for this tut. I always have a problem with positioning using CSS. Now, I got more knowledge.</p> ]]></content:encoded> </item> <item><title>By: Praveen Kumar.Padma</title><link>http://css-tricks.com/absolute-positioning-inside-relative-positioning/#comment-37390</link> <dc:creator>Praveen Kumar.Padma</dc:creator> <pubDate>Mon, 27 Oct 2008 13:00:17 +0000</pubDate> <guid isPermaLink="false">http://css-tricks.com/?p=791#comment-37390</guid> <description>is relative position better than absolute positioning?</description> <content:encoded><![CDATA[<p>is relative position better than absolute positioning?</p> ]]></content:encoded> </item> <item><title>By: Absolute, Relative, Fixed Positioning: How Do They Differ?&#160;&#124;&#160;Proba</title><link>http://css-tricks.com/absolute-positioning-inside-relative-positioning/#comment-37306</link> <dc:creator>Absolute, Relative, Fixed Positioning: How Do They Differ?&#160;&#124;&#160;Proba</dc:creator> <pubDate>Sun, 26 Oct 2008 15:59:03 +0000</pubDate> <guid isPermaLink="false">http://css-tricks.com/?p=791#comment-37306</guid> <description>[...] There are two other things that happen when you set position: relative; on an element that you should be aware of. One is that it introduces the ability to use z-index on that element, which doesn&#8217;t really work with statically positioned elements. Even if you don&#8217;t set a z-index value, this element will now appear on top of any other statically positioned element. You can&#8217;t fight it by setting a higher z-index value on a statically positioned element. The other thing that happens is it limits the scope of absolutely positioned child elements. Any element that is a child of the relatively positioned element can be absolutely positioned within that block. This brings up some powerful opportunities which I talk about here. [...]</description> <content:encoded><![CDATA[<p>[...] There are two other things that happen when you set position: relative; on an element that you should be aware of. One is that it introduces the ability to use z-index on that element, which doesn&#8217;t really work with statically positioned elements. Even if you don&#8217;t set a z-index value, this element will now appear on top of any other statically positioned element. You can&#8217;t fight it by setting a higher z-index value on a statically positioned element. The other thing that happens is it limits the scope of absolutely positioned child elements. Any element that is a child of the relatively positioned element can be absolutely positioned within that block. This brings up some powerful opportunities which I talk about here. [...]</p> ]]></content:encoded> </item> </channel> </rss>
<!-- This site's performance optimized by W3 Total Cache. Dramatically improve the speed and reliability of your blog!

Learn more about our WordPress Plugins: http://www.w3-edge.com/wordpress-plugins/

Minified using disk
Page Caching using disk (enhanced) (user agent is rejected)
Database Caching 4/9 queries in 0.012 seconds using apc
Content Delivery Network via cdn.css-tricks.com

Served from: css-tricks.com @ 2010-03-21 20:53:32 -->