Spacing
Spacing is the adjustable empty distance between or around textual, typographic, interface, or layout elements.
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.
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.
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.
Also covered in
What to know first
- CSSCSS (Cascading Style Sheets) is a stylesheet language for specifying the presentation and layout of structured documents.
- CSS GridCSS Grid is a CSS layout system for arranging elements in two-dimensional rows and columns.
- headingA heading is a textual or semantic label that introduces or identifies a section of content and may indicate its level in a document hierarchy.
Related concepts
- line heightconfigured by · Line height is the vertical space allocated to a line of text, including the space between successive lines.
- letter-spacingconfigured by · Letter spacing, or tracking, is the typographic adjustment of horizontal space between adjacent characters or glyphs across text.
- contrastused by · Contrast is the perceptual or measurable difference in visual properties, such as luminance or color, between elements or regions.
- margin propertyused by · The CSS margin property specifies the outer space around an element’s border, separating it from neighboring content.
- vertical rhythmconfigured by · Vertical rhythm is a typographic layout system that uses regular vertical spacing to establish consistent relationships among page elements.
- character spacingincludes · Character spacing is the horizontal distance or tracking applied between adjacent characters in text.
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.


