copyright © CSSPG, lud December 29 2001


 for practical use of CSS

CSS Pointers

this document is located at...
<URI:http://css.nu/pointers/position.html>

relative green parent relative green parent relative green parent relative green parent absolute blue child absolute blue child absolute blue child absolute blue child

Kris Dages reports:

If you have one text element relatively positioned with an absolutely
positioned child (with the top and left properties set), the child
should be positioned relative to the top left corner of the parent.
This is so as long as the parent does not take up more than one line.
However, if the parent element takes more than one line, the child
element is now positioned relative to the left margin of the window
(disregarding even the body's margin).  The child seems to be placed
relative to the logical top of the parent regardless.

CSS Pointers Navigation
Index · Browser Bugs · Books · Tools · DHTML · XSL & DSSSL
Main Site Navigation
Index · Articles · Examples · Experiments · FAQ · Markup · Styles · Who is?
CSSPG ~ Sue ~ Roland
Validate markup Check CSS