Using jquery, can I get the X and Y offsets of a specific element?

Using jquery, can I get the X and Y offsets of a specific element?

+3
source share
2 answers

Regarding what? His parent? Document?

CSS / position gets the top and left position of the element relative to the offset parent.

CSS / offset gets the current offset of the first matching element in pixels relative to the document.

+6
source

Source: https://habr.com/ru/post/1706279/


All Articles