Skip to main content

grid-row Property in CSS Grid Layouts

grid-row is a shorthand for the grid-row-start and grid-row-end properties.

In other words, instead of writing:

.grid-item1 {
grid-row-start: 1;
grid-row-end: 5;
}

You can alternatively use the grid-row property to shorten your code like so:

.grid-item1 {
grid-row: 1 / 5;
}
grid-row syntax
grid-row: grid-row-start / grid-row-end;
Buy your CSS Flexbox Explained Visually book on Amazon
Find all your favorite books at booksamillion.com.