liveBook · Manning

Spacing

Spacing is the adjustable empty distance between or around textual, typographic, interface, or layout elements.

How 3 Manning books explain it

Design for Developers

Spacing is the amount and arrangement of empty space between visual elements, including divisions within a grid.

How it is used
Uses empty space to organize interfaces, establish hierarchy, support scanning, and make content more consumable.
How deep it goes
Explains spacing through proximity, focal points, grid gaps, and before-and-after examples, without prescribing measurements or implementation code.
Examples
Uses grid columns, section headings, early cramped websites, a personal website, and tightly packed three-column content components.
What you can do after
Apply spacing to separate components, emphasize focal points, guide scanning, and maintain balance across changing layouts.

Read how Design for Developers explains spacing →

CSS in Depth, Second Edition

Design spacing is the arrangement of empty space between and around interface elements.

How it is used
Establishes visual patterns, hierarchy, and readability through space between interface elements, components, and text.
How deep it goes
Explains measured layouts, margins, relative units, line-height, letter-spacing, and flexbox gap without detailing CSS implementations.
Examples
Uses annotated mockup measurements, navigation buttons, hero content, columns, and text samples with varied spacing.
What you can do after
Apply spacing via CSS margins, relative units, line-height, letter-spacing, and flexbox gap while preserving visual patterns.

Read how CSS in Depth, Second Edition explains spacing →

Architecting Accessibility

Spacing is the configurable separation between text characters, words, lines, or layout elements.

How it is used
Preserves readable, usable web content when people adjust text spacing to suit their needs.
How deep it goes
Explains spacing adjustments and shows how fixed heights and hidden overflow can cut off content.
Examples
Uses increased line, paragraph, word, and letter spacing, plus a disappearing “Read more” link.
What you can do after
Build flexible CSS layouts that retain content and functionality when users increase text spacing.

Read how Architecting Accessibility explains spacing →

Also covered in

What to know first

Related concepts

Questions about spacing

What is spacing?

Spacing is the adjustable empty distance between or around textual, typographic, interface, or layout elements.

Which Manning books explain spacing?

Design for Developers, CSS in Depth, Second Edition and Architecting Accessibility.

What should I know before learning spacing?

Manning books that teach spacing usually introduce CSS, CSS Grid and heading first.

What kinds of spacing are there?

Kinds of spacing include character spacing.

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.