CSS Grid Rows
Understand how grid rows work, auto height vs fixed height, and how vertical layouts are controlled.
David Miller
January 9, 2026
0.8k35
Rows control **vertical layout**.
## Example
```css
.container {
display: grid;
grid-template-rows: 80px auto 60px;
}
```
## UI imagination
- Header: 80px
- Content: flexible
- Footer: 60px
## Real-world example
Almost every website page.
## Important note
Avoid fixed height unless necessary.
#CSS#Beginner