# repeat()

*noun*

say it: **“rih-PEET”** **/rɪˈpit/**

A CSS function that writes the same row or column size several times for you, such as repeat(4, 1fr) for four equal columns.

## 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); }
```

## In a sentence

- “**repeat()** saved me from typing 1fr four times in a row.”

Level: Journeyman · [More CSS terms at this level](https://www.ask-codey.com/glossary?category=css&level=3)

Updated: November 9, 2026

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