A margin is space outside an element’s border. Think of it as breathing room: it can keep neighboring elements apart or stop content from brushing against the edge of the browser window. In the CSS box model, the order from inside out is content, padding, border, then margin. section 9.11 section 9.15
You can control each side separately:
- Use `margin-top` and `margin-bottom` for space above and below an element. section 9.11
- Use `margin-right` and `margin-left` for space on either side. section 9.11
- Use a positive value to move elements apart. A negative value can bring them closer or make them overlap. section 9.11
.pullquote {
margin: 1.5em 2.5em 2em 3em;
}
The single `margin` declaration sets all four sides of this pull quote. Read its values in order: top, right, bottom, left. section 9.11
Give paragraphs room to breathe
Try `p { margin-bottom: 1em; }` to put space beneath each paragraph. Margin values can also use units such as `px` or `rem`, percentages, or `auto`. Browsers supply default margins, so check those before deciding how much space to add. section 9.11




