Absolute positioned child needs a positioned parent.
❌ Wrong
.parent { }
.child {
position: absolute;
top: 10px;
}
✔ Correct
.parent {
position: relative;
}
.child {
position: absolute;
top: 10px;
}
💡 Hidden Trap
Transforms also create new positioning contexts.
