Getting the absolute position of an a element
I have a valid XHTML 1 transitional page with the folowing elements:
I have some CSS associated with the elements,but I didn't set the position property nor the top/left properties for the elements.How can I get the absolute position (i.e. the distance from html element to the a element) of the a element (in a W3C standard compliant way,so that it will work in Mozilla and Konqueror)?
I have a absolute positioned div which I want to move to near the link,but I can't get it's absolute position.
Btw.I tried computed style,but it returns NaN (not a number) because the computed value of left is "auto" in Mozilla.Does anyone know how I can do this?
Thank you in advance.