CSS grid-row-end Property


Example

Make "item1" span 3 rows:

.item1 {
  grid-row-end: span 3;
}
Try it Yourself »

Definition and Usage

The grid-row-end property defines how many rows an item will span, or on which row-line the item will end (see example at the end of this page).

Show demo ❯

Default value: auto
Inherited: no
Animatable: yes. Read about animatable Try it
Version: CSS Grid Layout Module Level 1
JavaScript syntax: object.style.gridRowEnd="4" Try it

Browser Support

The numbers in the table specify the first browser version that fully supports the property.

Property
grid-row-end 57 16 52 10 44


CSS Syntax

grid-row-end: auto|row-line|span n;

Property Values

Value Description Demo
auto Default value. The item will span one row. Demo ❯
span n Specifies the number of rows the item will span. Demo ❯
row-line Specifies on which row to end the display of the item. Demo ❯

More Examples

Example

You can use row-line values instead numbers of rows to span:

.item1 {
  grid-row-end: 3;
}
Try it Yourself »

Related Pages

CSS tutorial: CSS Grid Layout


Copyright 1999-2023 by Refsnes Data. All Rights Reserved.