+ 2
pls What do they mean by this?
The element's position is relative to the first positioned parent element in absolute position
2 odpowiedzi
+ 15
If we have this type of tree:
<div id="p1" style="position: relative;">
<div id="p2" style="position: relative;">
<div id="c1" style="position: absolute;">
</div>
</div>
</div>
then the "c1" element will be positioned relatively to the "p1" element, because it is the first parent with relative position.
+ 1
Thanks