Previous Message
Next Message

absolute positioning

Sent by Alex Mitchell on 30 July 2010 21:09

On Fri, Jul 30, 2010 at 12:25 PM, Angela French [EMAIL-REMOVED]> wrote:

> I'm being driving nuts by absolute positioning rendering between IE and FF.
>  I just want to confirm what I think is correct about absolute positioning.
>  My understanding is that an absolutely position element positions itself
> relative to its parent container.  If the parent has not positioning, then
> it positions itself absolutely relative to the grandparent container, and so
> forth, up to the <body>.  Is this correct?
> If so, do both IE and FF follow this?
> Thank you.
> Angela French
> Internet Specialist
> State Board for Community and Technical Colleges
> 360-704-4316
It's my understanding that an absolutely positioned element will be
positioned absolutely relative to the nearest relatively or absolutely
positioned parent.
If no parents are relatively positioned it will be positioned relative to
the viewport or the <html> element.

I've created a demo of how this works here:

Alex Mitchell

> css-discuss [EMAIL-REMOVED]]
> List wiki/FAQ --
> List policies --
> Supported by --
css-discuss [EMAIL-REMOVED]]
List wiki/FAQ --
List policies --
Supported by --
Previous Message
Next Message

Possibly related: