# Gap

*noun*

say it: **“GAP”** **/ɡæp/**

The CSS property that sets the space between flex or grid items.

## What does `gap` do?

`gap` sets the space between items in a flex or grid container, without margins on each item.

```css
.card-grid { display: grid; gap: 24px; }
```

## In a sentence

- “A **gap** of 1rem keeps the product cards from touching.”

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/gap
