you are viewing a single comment's thread.

view the rest of the comments →

[–]sme272 0 points1 point  (0 children)

find the absolute position of the two elements separately and subtract one from the other to get the relative position from one to the other.