Skip to content

Glossary: CSS Layout and Responsive Design

gap

Fixed space between flex or grid items, never before the first or after the last. `gap: 8px 16px` sets row gap then column gap.

Where the book teaches it

Related terms

Margin collapsing