This is a legacy document, and retained on the site in order to avoid link rot. The content is likely no longer (a) accurate, (b) representative of the views and philosophies of current site management, or (c) up to date.

CSS Pointers

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 absolutelypositioned child (with the top and left properties set), the childshould 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 childelement is now positioned relative to the left margin of the window(disregarding even the body's margin).The child seems to be placedrelative to the logical top of the parent regardless.

Sue Sims