Margin

noun

say it: “MAR-jin” /ˈmɑːrdʒɪn/

The space outside an element's border, pushing other elements away.

What is margin in CSS?

Margin is the space outside an element's border, pushing other elements away.

.card { margin-bottom: 24px; }   /* gap below each card */

In a sentence

  • “I added a margin below each card so they don't touch.”

Level: Novice · More CSS terms at this level

Updated