Just in case it is not clear from Ben's post - it's something that is not entirely obvious - to get the positioning as you wish you need to make the containing block be position: relative.


This will leave it in the normal flow of the document but make it a containing block.

Regards,
Mark


Ben Bishop wrote:


Hi Taco,
Lifted straight from Douglas Bowman's "Making the Absolute, Relative"
http://www.stopdesign.com/also/articles/absolute/
<quote>
an absolute-positioned element <http://www.w3.org/TR/CSS2/visuren.html#positioning-scheme> is positioned according to its containing block <http://www.w3.org/TR/CSS2/visuren.html#containing-block>"
</quote>
<quote>
If an absolute-positioned element resides within no other containing block, (when no ancestor elements are /positioned/) it is placed relative to the page boundaries (called the /initial containing block/)
</quote>
hth,
Ben


-----Original Message-----
I believe the left 100px is still calculated from the browser and
not from where the div is located, should it not calculate the
absolute position where ever the div is located?




*****************************************************
The discussion list for http://webstandardsgroup.org/
*****************************************************




Reply via email to