[07]Layout

Spacing & whitespace in web design.

Beginners add elements; designers add space. Whitespace is the cheapest, most overlooked tool for making a site look premium — here's how to use it.

The short answer

What is whitespace in design?

Whitespace — also called negative space — is the empty area between and around elements: margins, padding, line spacing, and gaps. It doesn't have to be white; it's simply space left intentionally empty so the content has room to breathe.

Why it matters

Why does whitespace matter?

Space creates focus and calm. Generous whitespace around an element signals importance, improves readability, and makes a layout feel premium. Cramped pages feel cheap and overwhelm the reader, who leaves before reading anything.

The system

What is a spacing scale?

A spacing scale is a fixed set of spacing values — commonly multiples of 4 or 8 pixels (4, 8, 12, 16, 24, 32, 48, 64) — that every margin, padding, and gap draws from. Using a scale instead of arbitrary numbers is what makes spacing feel rhythmic and consistent.

How much

How much spacing should you use?

  • Group related things, separate unrelated ones — more space between sections than within them.
  • Give sections room — generous vertical padding between page sections (often 64–120px on desktop).
  • Let the primary action breathe — clear space around a CTA makes it easier to find and click.
  • When unsure, add more — under-spacing is far more common than over-spacing.

Staying consistent

How do you keep spacing consistent across a site?

Define the spacing scale once and make every component use it — never one-off pixel values. That discipline is hard to hold by hand across dozens of components and pages. SketchXFlow bakes a spacing scale into the design system it generates and holds every page and edit to it, so the rhythm stays even as the site grows.

Generate a site with consistent spacing →

Frequently asked

What is whitespace in web design?

Whitespace is the empty space between and around elements — margins, padding, and gaps — left intentionally so content has room to breathe. It doesn't have to be white.

What is the 8-point grid?

A spacing system where all spacing values are multiples of 8 (8, 16, 24, 32…), which keeps margins and padding consistent and easy to reason about.

Can a page have too much whitespace?

Rarely in practice — under-spacing is far more common. Too much only becomes a problem when related elements drift so far apart they no longer read as a group.

⁄ End of document← Back to studio