On this page
  1. gap
  2. Syntax & Overview
  3. Notes & Best Practices
  4. Example

gap

Prev: `grid-template-columns` | Up: layout | Next: `float`
Rel: layout, Display & Layout Guide
Ref: MDN Web Docs — gap
Tags: #public #web #css #properties #layout #tier/core


Syntax & Overview

gap: <row-gap> <column-gap>;

Sets gutter spacing between flex, grid, or multi-column tracks without outer margin hacks.

Notes & Best Practices

Example

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem; /* row-gap column-gap */
}

Linked from

Related notes