Problem Statement
When an element is positioned absolutely, its position is relative to:
Explanation
An absolutely positioned element is taken out of the normal flow and positioned relative to its nearest ancestor with a position other than static. If none exists, it positions relative to the document body.
Code Solution
SolutionRead Only
.child { position: absolute; top: 0; left: 0; }Practice Sets
This question appears in the following practice sets:
