Margin
Margin
The empty space outside a box that pushes it away from other boxes.
💡 It's like the space between people standing in line.
👆 Try it yourself
It really works — click around and see.
Card 1
Card 2
Card 3
CSSgap: 12px;
🤖 Say this to your AI
Increase the Margin between sections to 120px to give them room to breathe. Set the gap between cards to 24px.
The key word is ‘Margin’. Including it helps AI understand you much more precisely.
📌 Good to know
When several items sit side by side, call the space between them a 'gap' and the AI will build it more cleanly.
When to use it
- When sections or cards are crammed too close together
Also called: spacing, space between, gap, outer spacing, whitespace, too close together