Previous Message
Next Message

Absolutely positioned element doesn't expand its container

Sent by Gunlaug_Sørtun on 2 February 2007 10:10


Reuben D. Budiardja wrote:
> I have the following problem which seems to be because of my lack of
> knowledge of some basic css. I hope someone can help explaining this
> to me.

> http://www.budiardja.org/tmp/css_test.html

Absolute positioned elements have no effect on their containers.
Absolute positioned elements are "taken out of the flow" - browsers
treat them as if they exist in another dimension (which in fact they do).

Change #left_column to 'position: relative;', and you'll get it back
into the right dimension and get the appearance you're after.

For some basic information on the subject, read the entire chapter on...
"9.8 Comparison of normal flow, floats, and absolute positioning"
<http://www.w3.org/TR/CSS21/visuren.html#comparison>

regards
	Georg
-- 
http://www.gunlaug.no
______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7 information -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Previous Message
Next Message

Message thread: