repeat()

A CSS Grid function that writes a track pattern many times, such as repeat(3, 1fr), or as many times as fit with auto-fit or auto-fill.

In more detail

The first argument is a count or a keyword, and the second is the track pattern to repeat. repeat(auto-fit, minmax(280px, 1fr)) is the classic responsive card grid.

Related terms

Taught in

References