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.

.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

Updated