Problem Statement
An absolutely positioned element is positioned relative to:
Explanation
An element with position: absolute is positioned relative to the nearest ancestor that has a position other than static. If no such ancestor exists, it positions relative to the document body.
Code Solution
SolutionRead Only
.child { position: absolute; top: 0; left: 0; }