- Home
- /
- Tutorials
- /
- CSS Tutorial
- /
- CSS Grid Rows
CSS Grid
CSS Grid Rows
The CSS Grid Rows property is used to define the height and structure of rows in a CSS Grid layout.
Rows are created using the grid-template-rows property.
Just as columns control horizontal layout, rows control the vertical layout of grid items. The supporting concepts are explained in CSS Grid Columns and CSS Grid Gap.
With Grid Rows, you can:
- Create multiple rows
- Set fixed row heights
- Create flexible row layouts
- Build structured page sections
- Control vertical spacing and alignment
Syntax
CSS Grid Rows Syntax
css
.container {
display: grid;
grid-template-rows: value;
}