The grid-auto-rows property sets the size of implicitly created row tracks. Implicit rows appear when items need more rows than grid-template-rows defines—for example with the default grid-auto-flow: row, or when an item is placed past the last explicit row.
It is set on the grid container, is not inherited, and the initial value is auto. Explicit rows from grid-template-rows are unchanged. For implicit columns, use grid-auto-columns.
Standard-track.
Not deprecated and not experimental. Baseline Widely available. Part of modern CSS Grid Layout.
Syntax
CSS Syntax
syntax.css
grid-auto-rows:<track-size>+ | initial | inherit;
A track size can be auto, a length, a percentage, fr, minmax(), min-content, max-content, or fit-content().
Values
Property Values
Value
Description
Try it
auto
Default. Size from content (similar to a flexible min/max content range)
If the grid’s block size is indefinite, 1fr rows often collapse toward content size. Give the container a height when you want equal flexible rows.
pattern
Multiple values form a repeating pattern
grid-auto-rows: 40px 80px makes the first implicit row 40px, the next 80px, then repeats.
cols
Do not confuse with grid-auto-columns
This property is for rows only. Implicit column width is controlled by grid-auto-columns.
Compatibility
Browser Support
grid-auto-rows is a browser CSS property for CSS Grid. Node.js, Deno, and Bun do not apply it.
✓ Baseline · Widely available
grid-auto-rows
Supported in Chrome 57+, Firefox 52+, Safari 10.1+, and Edge 16+. Internet Explorer does not support modern Grid.
97%Global support
Google Chrome57+
Full support
Mozilla Firefox52+
Full support
Apple Safari10.1+
Full support
Microsoft Edge16+
Full support
Opera44+
Full support
Samsung Internet6.2+
Full support
Internet ExplorerNo modern Grid
Not supported
grid-auto-rowsWidely supported
Bottom line: Safe in current browsers. Use it when auto-flow or placement creates rows beyond grid-template-rows.
Remember
Key Takeaways
Role: size rows the grid creates automatically.
Not for templates. Explicit rows still use grid-template-rows.
Initial:auto. Not inherited.
Default row flow is the usual way those extra rows appear.
One line:grid-auto-rows is the height rule for rows the grid invents on the fly.
Frequently Asked Questions
It sets the size of row tracks that the grid creates automatically when items need rows beyond grid-template-rows.
The initial value is auto, which sizes each implicit row from its content.
grid-template-rows defines the explicit rows you plan. grid-auto-rows only sizes extra (implicit) rows created by placement or auto-flow.
With the default grid-auto-flow: row, overflow items create new rows. Placing an item on a row line outside the explicit template also creates implicit rows.
No. Rows listed in grid-template-rows keep those sizes. Only newly created rows use grid-auto-rows.
It is Baseline Widely available: Chrome 57+, Firefox 52+, Safari 10.1+, and Edge 16+. Internet Explorer does not support modern Grid. It is a browser CSS property, not a Node.js feature.