W3C home > Mailing lists > Public > www-style@w3.org > February 2004

Re: get absolute position

From: Aleš Potočnik <ales.potocnik@buyitc.si>
Date: Fri, 20 Feb 2004 04:23:31 -0500 (EST)
Message-ID: <86A0E8D28712F84F83FA3D8FE4D353B5114705@primus.buyitc.si>
To: <www-style@w3.org>



You normaly get the absolute position with referencing

document.layers.pos.style.left
document.layers.pos.style.left

that works fine

does someone know hot to get absolute position of a relative div. If you query the above .left and .top params, you get an empty or undefined.

I need this to dynamicly position otherwise absolute div, who's position depends on a relative one (-s).



TheBoogie
Received on Friday, 20 February 2004 07:23:12 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:26 GMT