Previous Message
Next Message

Overflowing containing block with abs positioned elements

Sent by Jason Estes on 11 March 2005 21:09


On Fri, 11 Mar 2005 15:14:06 -0600, Scott Blanchard
[EMAIL-REMOVED]> wrote:
> http://ver5.elliswyatt.com/mtop/
> 
> Notice how the middle content element is overflowing it's container. Any way
> to make the container grow with it's absolutely positioned content? (without
> using floats)
> 
> The container is set to position:relative


One of the "issues" with using abs. positioning is that the element
you position is taken out of the normal document flow.  Which means,
that it takes up no space in the document or any parent elements that
it might have.  So there is no way to get your container to flow open
to the height of your abs. positioned element unless you give it a
specific height.

What you are wanting would be much better accomplished using floats. (
which i know you said you didn't want to use).

HTH.

Jason Estes.
www.bewb.org
______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Previous Message
Next Message