CSS Position Basics
Understand CSS position types clearly: static, relative, absolute, fixed, and sticky with real-world behavior.
David Miller
November 21, 2025
9.1k409
Position controls **where an element lives** on the page.
## Position types
- static (default)
- relative
- absolute
- fixed
- sticky
## Static
Normal document flow.
## Relative
Moves relative to itself.
```css
.box {
position: relative;
top: 10px;
}
```
## UI imagination
Box moves slightly but keeps its space.
## Real-world use
Minor adjustments without breaking layout.
#CSS#Beginner#Important