minmax()

A CSS Grid function that lets a track size vary between a minimum and a maximum, such as minmax(280px, 1fr).

In more detail

It keeps tracks from becoming too narrow for their content while still letting them stretch to fill space. Combined with repeat() and auto-fit it builds responsive grids without media queries.

Related terms

Taught in

References