Forum Moderators: not2easy

Message Too Old, No Replies

Positioning div's on the fly

How to position a div to different td's on the fly?

         

gergoe

8:26 pm on Apr 12, 2005 (gmt 0)

10+ Year Member



Does anyone has suggestions on how to position a DIV to different cells in a table? More preciselly I need to get the position of the designated TD first (js and css probably), then set the position of the DIV, based on the position of the TD.

I'm completelly stuck on the first point, as going through the containers (parents) of the designated TD does not return the correct information, probably because the offsetHeight and offsetWidth properties of the TD's are relative to the TR, but the TR's are not showing up as offsetParent for the TD?

Any idea how to get around this?

Thanks

gergoe

1:10 am on Apr 13, 2005 (gmt 0)

10+ Year Member



Forget about it, I was so stupid to overlook on a small typo - which rendered the whole thing useless;

Thanks anyway ;-)