grid-row-end
Introduction
The grid-row-end CSS property specifies a grid item's end position within the grid row by contributing a line, a span, or nothing (automatic) to its grid placement.
Examples
Syntax
Values
-
autoDefault value. Is a keyword indicating that the property contributes nothing to the grid item's placement, indicating auto-placement, an automatic span, or a default span of
1. -
<number>Grid item's end position. An integer value of 0 is invalid.
-
span &&
<number>Contributes a grid span to the grid item's placement such that the row end edge of the grid item's grid area is n lines from the start edge.
Formal definition
| Initial value | auto |
| Applies to | grid items |
| Inherited | no |
| Animatable |
Formal syntax
Differences from the Web
<custom-ident>,span && <custom-ident>,<integer> && <custom-ident>?are not supported.
Notes
-
When
grid-row-startandgrid-row-endspecify two distinct grid lines, the row span is determined by the distance between those lines, andgrid-row-spanis ignored. The following item spans three rows: -
Do not combine
grid-row-spanwithspan <number>ingrid-row-startorgrid-row-end. Both specify the row span and can override each other. The following declarations specify conflicting spans of three rows and one row:
Compatibility
LCD tables only load in the browser
