# Grid template rows

*noun*

say it: **“GRID TEM-plit ROHZ”** **/ɡrɪd ˈtɛmplɪt roʊz/**

The CSS property that sets how many rows a grid has and how tall each one is.

## What does `grid-template-rows` do?

`grid-template-rows` sets the rows of a grid and how tall each one is.

```css
.page { display: grid; grid-template-rows: 60px 1fr 40px; }   /* header, content, footer */
```

## In a sentence

- “**grid-template-rows**: auto 1fr auto gives the page a header, a stretchy middle and a footer.”

Level: Journeyman · [More CSS terms at this level](https://www.ask-codey.com/glossary?category=css&level=3)

Updated: November 9, 2026

Source: https://www.ask-codey.com/glossary/grid-template-rows
