CSS grid-auto-rows Property


The grid-auto-rows property in CSS is used to specify the size for the rows of implicitly generated grid containers.

The grid-auto-rows property sets a size for the rows in a grid container.

This property affects only rows with the size not set.

CSS Syntax

grid-auto-rows: auto|max-content|min-content|length;

Supported Browsers:

  • Firefox: 52.0, 2.0 -moz-
  • Google Chrome: 50.0, 4.0 -webkit-
  • Internet Explorer: 10.0
  • Safari: 9.0, 3.1 -webkit-
  • Opera: 37.0, 15.0 -webkit-, 11.1

Example -