What is the top position of an html element?

I was playing with AJAX Contol Toolkit today and wanted to position a control (ie DIV) at the same position as the control (ie element) however I was suprised to discover that there is no such property, you have to total all the offsets of the elements parents to get the actual position. Fortunatley I stumbled across this…
Find Position which worked a treat.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s