Hello
Reading the follwing document:
http://www.w3.org/TR/WD-positioning-970131#In-flow
it seems very clear that position:relative should be relative to the parent
element. So in the following test case element1 and element2 should be
placed side by side inside a centered white container element:
http://www.markusernst.ch/test.htm
General structure:
<container>
<element1 />
<element2 />
</container>
Anyway all browsers I can test (Firefox, IE6 PC, IE5 Mac, Opera, Safari)
position element2 relative to the bottom left corner of element1. (IE even
applies the centering inherited from the body, I left this in the example
for humour purposes only...)
So the generally accepted reference of relative positioning seems to be
rather the bottom left corner of the preceding element than the top left
corner of the parent element. Is this behaviour correct? And is there any
possibility to achieve a layout with a fixed size centered content area
without frames or layout tables? (I can't float the elements inside the
container, as some might overlap.)
--
Markus