# repeat()

Repeats a track size, like repeat(4, 1fr).

## What does `repeat()` do in a grid?

`repeat()` writes the same track size several times without typing it out.

```css
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); }
```

Level: Journeyman · [More CSS terms at this level](https://www.ask-codey.com/glossary/subjects/css/journeyman)

Updated: September 27, 2026

Source: https://www.ask-codey.com/glossary/repeat
