Absolute coordinates on a relatively positioned element?

Giganews Newsgroups
Subject: Absolute coordinates on a relatively positioned element?
Posted by:  dterro…@hotmail.com
Date: Wed, 20 Jun 2007

This must be an ancient question but I defy you to find a way to
search for it.

If I have a div:

<div style="position:relative;">wefwe</div>

And it's nested deep with in the html on my page, how do I find it's
absolute left and top (x and y) coordinates?

Replies