grid-template-columns

The CSS Grid properties that define the number and size of a grid's column tracks and row tracks.

In more detail

grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) creates as many columns of at least 280px as fit, each growing to share the width. Setting grid-template-rows: subgrid instead makes an item reuse its parent's rows.

Related terms

Taught in

References