In short
- White space is the empty space between and around the elements of a page. It does not have to be white.
- It makes text easier to read, shows which things belong together and draws attention to what matters.
- Micro white space is the spacing within text and components. Macro white space is the room between sections.
- A consistent spacing scale, built from a few fixed steps, makes a design look deliberate.
- Empty space is not wasted space. Filling every gap makes a page harder to use, not more informative.
The most common instruction a designer hears is to make better use of the space, which usually means fill it. It is an understandable instinct. A home page feels like expensive ground, and leaving parts of it empty feels like waste. But the empty parts are doing work. They separate one idea from the next, give the eye somewhere to rest and tell the visitor what is important.
Designers call this white space, or negative space. Understanding it is the quickest way to see why some websites look calm and expensive while others, with the same content, look cluttered.
What Is White Space?
White space is any part of a page left unmarked: the margins around the content, the gaps between sections, the space between lines of text, the padding inside a button. The name comes from print, where the paper was usually white. On a website it can be any colour, a pattern or even a photograph, as long as it reads as background.
It comes in two scales, and both matter.
| Type | Where it is | What it does |
|---|---|---|
| Micro white space | Between letters, words and lines, between a label and its field, inside buttons and cards | Makes text readable and components comfortable to use |
| Macro white space | Between sections, around the main content and in the margins of the page | Gives the page its structure and pace, and separates one idea from the next |
Designers also talk about active and passive white space. Passive space is what is left over naturally, such as the gap at the end of a short line. Active space is added on purpose, to lead the eye or to set something apart.
What White Space Does
- It makes text readable. Lines with room between them, in a column of sensible width, are far easier to read than a dense block that fills the screen.
- It shows what belongs together. Things placed close to one another are read as a group. Space is how a page says where one thing ends and another begins, without needing boxes and lines.
- It directs attention. An element with empty space around it stands out. The more space, the more important it appears.
- It sets the pace. Generous gaps between sections let a visitor take in one idea before meeting the next.
- It signals quality. Space is associated with care and confidence. Premium brands leave room, and bargain leaflets fill every corner. Visitors read the same signals on a website.
Micro White Space: Text and Components
The spacing of text has more effect on readability than the choice of typeface. Three settings do most of the work: the height of each line, the length of each line and the gap between paragraphs.
body {
font-size: 1.125rem;
line-height: 1.6;
}
p {
max-width: 65ch;
margin-block: 0 1.25em;
}
h2 {
margin-block: 2.5em 0.6em;
}
.button {
padding: 0.85em 1.6em;
}Notice the heading. It has much more space above it than below, so it is visibly attached to the text it introduces. A heading that floats halfway between two paragraphs belongs to neither. The same rule applies to labels and form fields, captions and images, prices and products.
Macro White Space: Sections and Layout
At the larger scale, white space separates the sections of a page and frames the content. A comfortable maximum width for the main column, margins that grow with the screen and consistent gaps between sections give a page its rhythm.
The simplest way to get this right is a spacing scale: a short list of sizes that every gap on the site is taken from. With five or six steps instead of dozens of arbitrary values, related things end up the same distance apart everywhere, and the design looks deliberate.
:root {
--space-xs: 0.5rem;
--space-s: 1rem;
--space-m: 1.5rem;
--space-l: 3rem;
--space-xl: clamp(4rem, 3rem + 5vw, 8rem);
}
section {
padding-block: var(--space-xl);
}
.card-grid {
gap: var(--space-m);
}The gap property, which works in both grid and flexbox, is the cleanest way to space the items in a layout, because it only ever adds space between items and never around the outside. Our comparison of CSS grid and flexbox explains both.
White Space on Small Screens
A phone has little room, and the temptation is to remove all the space to fit more in. The result is a wall of content with no structure. Space matters as much on a small screen. It just needs to be scaled.
- Keep the line height and the gaps between paragraphs. They are what make text readable.
- Reduce the large gaps between sections, but keep them clearly larger than the gaps within sections.
- Leave a margin at each side so that text never touches the edge of the screen.
- Keep space between tappable things. Links and buttons packed together are easy to hit by mistake.
This is one reason mobile-first design works: when you start with a small screen, you have to decide what deserves the space.
The Fear of Empty Space
The usual objection is that people will have to scroll. They will, and they do so without complaint. Scrolling is the most natural action on any device, and a page that is easy to scan gets read further than one that crams everything onto the first screen. What matters is that the top of the page makes clear what is on offer and gives a reason to continue, as our guide to what goes above the fold explains.
The other objection is that the space could be used to say more. It could, but each addition takes attention away from everything else. A page with one clear message and room around it is more persuasive than a page with ten messages competing. Deciding what to leave out is part of the work, best begun when you write the website design brief, and it is the heart of minimalist web design.
Common White Space Mistakes
- Inconsistent gaps. Similar elements separated by slightly different distances look careless, even when nobody can say why.
- Headings stranded between paragraphs. Equal space above and below detaches a heading from its text.
- Text running the full width of the screen. Long lines are tiring to read. Limit the column, not the screen.
- Boxes and lines instead of space. Borders around everything add clutter. Often the space alone would do the separating.
- Too much space inside a group. If the items in a list are as far apart as the sections of the page, the structure disappears.
- Space with nothing to say. White space supports content. A huge empty hero with a vague slogan is not minimal, only empty.
Putting It Into Practice
Reading about a technique is the easy part. Applying it to a real business, with real content and a launch date, takes judgement about what to use and what to leave out. DigitalPod is a UK-based design and web development studio that designs every site from a blank page and builds it by hand, so a technique is used because it helps the business and not because a template came with it. If you would like a website designer to handle it for you, startup website design is what we specialise in, websites start from £2,400 and our website redesign service brings an older site up to date.
Frequently Asked Questions
What is white space in web design?
White space, also called negative space, is the empty area between and around the elements of a page: margins, padding, the gaps between sections and the space between lines of text. It does not have to be white. Any background that separates content counts.
Why is white space important in web design?
It makes pages easier to read and to scan, shows which elements belong together, draws attention to the things that matter and gives a site an impression of quality. A page without it feels crowded and tiring, however good the content.
Is white space wasted space?
No. It is doing structural work, in the same way that pauses do in speech. Filling it usually makes a page harder to use, because every added element competes with the others for attention.
What is the difference between micro and macro white space?
Micro white space is the small-scale spacing within text and components, such as line height, the gaps between paragraphs and the padding in a button. Macro white space is the large-scale spacing between sections and around the page. The first affects readability, and the second affects structure and pace.
How much white space should a website have?
There is no fixed amount. A useful rule is that the space between unrelated things should be clearly larger than the space between related things, and that the most important element on a page should have the most room around it. A consistent spacing scale makes those relationships easy to keep.