CSS grid-row Property Reference
The CSS grid-row property is a standard property in CSS Grid Layout. Review its formal syntax, computed behavior, and practical declarations.
Updated 2026-08-12
grid-row overview
The CSS grid-row property is a standard property in CSS Grid Layout. Review its formal syntax, computed behavior, and practical declarations.
The property is not inherited by default. Use an explicit global keyword when inheritance is intended.
Syntax and formal definition
| Field | Value |
|---|---|
| Formal syntax | <grid-line> [ / <grid-line> ]? |
| Initial value | grid-row-start, grid-row-end |
| Applies to | gridItemsAndBoxesWithinGridContainer |
| Inherited | No |
| Percentages | no |
| Computed value | grid-row-start, grid-row-end |
| Animation type | discrete |
| Media | visual |
| Specification group | CSS Grid Layout |
| Status | Standard |
Practical examples
These declarations demonstrate valid ways to set grid-row. The initial and inherit global keywords remain available even when a property-specific value is preferable.
CSS
.reset-example {
grid-row: initial;
}
.inherit-example {
grid-row: inherit;
}
@supports (grid-row: initial) {
.supported {
grid-row: initial;
}
}