A short CSS tutorial explaining the basics of position absolute and how it behaves when position relative is applied to a sibling or parent element. It is aimed at people building layouts for the web who find CSS positioning confusing.
What you’ll learn
✓Explain how position absolute positions an element relative to its nearest positioned ancestor
✓Predict how adding position relative to a parent changes an absolutely positioned child
✓Apply position relative and absolute together to place elements in a layout