CSS
CSS PositionCSS Position
CSS position changes where an element sits on the screen.
Read Time
5 min readDifficulty
BeginnerLast Updated
Jun 15, 2026Version
v1.0.0Introduction
CSS removes elements from the normal document flow to place them exactly where you want. You can lock navigation bars to the top of the screen or layer images over one another. Top, bottom, left, and right properties adjust the final spot.
Example
Example
Key Points
- The `static` value is the default document flow.
- The `relative` value moves an element from its normal spot.
- The `absolute` value positions an element inside its nearest positioned parent.
- The `fixed` value locks the element to the browser window.