Example

A simple grid-auto-rows property example:

Laboratory

description & Usage

To determine the size of the rows in the grid layout, we use the grid-auto-rows property.

Informations

# Description
Default Value auto
Inherited no
Animatable yes
Version CSS Grid Layout Module Level 1
JavaScript syntax object.style.gridAutoRows="60px"

Browser compatibility and Support

# Chrome Edge Firefox Safari Opera
grid-auto-rows

Syntax

Values

Values Description
auto Default
max-content Determines the size of each row so that it is the same size as the largest item in the row.
min-content Determines the size of each row so that it is the same size as the smallest item in the row.
length Determines the size of the lines efficiently from the legal length.