Design glossaryWhite space, or negative space, is the empty space between and around elements. It makes layouts easier to read and focus on.
White space is all the space in a layout that is deliberately left empty: margins around the page, padding inside buttons and cards, gaps between sections, and the spacing between lines and paragraphs. It is often called negative space, and it does not have to be white; a colored or textured background works the same way. Far from being wasted, it is one of the main tools a designer has for making a page clear and easy to read.
Macro and micro white space
- Macro white space is the large-scale room in a layout: page margins, space between sections, and the area around a hero or a headline. It sets the overall feel of a page, from dense and busy to calm and spacious.
- Micro white space is the small-scale spacing within content: leading between lines, space between paragraphs and list items, padding inside buttons, and the gap between an icon and its label. It mostly decides readability.
Why it matters
- Readability: comfortable line spacing, paragraph spacing, and a sensible line length make text easier to read and scan.
- Grouping: things close together look related, and space between groups separates them, often more cleanly than lines or boxes.
- Focus and hierarchy: an element with space around it draws attention, which helps a key heading or button stand out and supports the page's visual hierarchy.
- Usability on touch screens: space between links and buttons helps people tap the one they mean.
The common mistake is not too much white space but inconsistent white space: a different gap everywhere, which makes a site look unfinished even when every part is well designed.
White space in CSS and WordPress
In CSS, white space comes from margin, padding, gap (in flexbox and grid layouts), and line-height. Most design systems use a spacing scale, a short set of steps such as 4, 8, 16, 24, 32, and 48 pixels, so every gap on the site comes from the same list.
WordPress block themes build this in. theme.json can define spacing presets, which appear as a slider in the Dimensions panel of blocks that support padding, margin, and block spacing. The blockGap setting controls the default space between blocks. Using the presets rather than typing custom pixel values keeps spacing consistent as more people edit the site.
One point of confusion: the CSS property named white-space is unrelated to layout spacing. It controls how a browser handles spaces and line breaks inside text, for example whether a line can wrap or whether runs of spaces collapse into one.
Source: MDN, gap.