CSS grid-row-end property
Example
Set item1 to span 3 rows:
.item1
{
grid-row-end:
span
3
;
}
Try it »
Browser support
The numbers in the table indicate the first browser version that supports this property.
| property | |||||
|---|---|---|---|---|---|
| grid-row-end | 57 | 16 | 52 | 10 | 44 |
Property definition and usage
The grid-row-end property specifies which row the grid item stops displaying at, or how many rows it spans.
| Default value: | auto |
|---|---|
| Inherited: | no |
| Animatable: | support. Read about animatable Try it |
| Version: | CSS Grid Layout Module Level 1 |
| JavaScript syntax: | object.style.gridRowEnd="4" Try it |
Syntax
grid-row-end: auto|row-line|span n;
| Value | Description |
|---|---|
| auto | Default value; spans one row. |
| row-line | Sets which row to end at. |
| span n | Spans n rows. |
More examples
Example
Set grid item1 to end at row 3:
.item1
{
grid-row-end:
3
;
}
Try it »
Related Articles
CSS Tutorial: CSS Grid Layout