CSS grid-row-end property
Browser support · legacy reference
ChromeFully supports
SafariFully supports
FirefoxFully supports
Internet ExplorerPartial support
EdgeFully supports
OperaFully supports
Description
CSS grid-row-end represents horizontal named or numbered grid line where the placement of an item ends.
We have a grid that consists of three (3) rows and four (4) grid lines. Suppose we have grid-row-start: 1; i.e. the placement of grid item starts from first grid line.
Syntax
grid-row-end : grid-line (named or numbered)
Property values
autoDefault
-
It occupies the space from one grid line ('grid-row-start') to the very next grid line.
- Try it
grid-row-end: auto; number
-
It represents the last grid line where the placement of an item ends.
'2' means the item is placed between grid line 1 to 2 i.e. within one row.
- Try it
grid-row-end: 2; number
-
'3' means the item is placed between grid line 1 to 3 i.e. within two rows.
- Try it
grid-row-end: 3; number
-
'4' means the item is placed between grid line 1 to 4 i.e. within three rows. Now, the item occupies the whole grid.
- Try it
grid-row-end: 4;
Applicable to
It applies to grid items.