Is there a way to find the position of the element associated with the last parent of the relative position?
I need a javascript way
suppose we have this HTML
<div id="div1" style="position:relative">
<div id="div2" style="padding:10px">
<div id="div3" style="position:absolute top:15px; left:20px;">Stack</div>
</div>
</div>
I need a div3 position associated with "div1".
thank
source
share