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.
.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
Updated