---
layout: single
property_name: grid-template-rows
---
Defines the rows of a grid container. You can specify the width of a row by using a keyword (like
No rows are defined.
You can mix the units.
You can use the
#grid-template-rows
auto) or a length (like 10px). The number of rows is determined by the number of values defined in the space-separated list.default
grid-template-rows: none;
grid-template-rows: 120px auto 3rem;
grid-template-rows: 20px 1fr 2fr;
fr flex unit to distribute the remaining space across all flex rows.