Text spacing

On this page 7

Text spacing is the set of typographic distances between lines, paragraphs, letters and words, and in digital accessibility it refers specifically to a user’s ability to increase those distances without losing content or functionality. The concept is formalized in WCAG 2.1 Success Criterion 1.4.12, a Level AA requirement that applies to web content built with markup languages such as HTML and CSS.

Adequate spacing helps people with low vision, dyslexia and other reading or cognitive differences track lines and recognize word shapes. Because no single default setting suits every reader, the criterion does not prescribe a design; it requires that layouts tolerate user overrides applied through style sheets, browser extensions or assistive technology.

The four text spacing properties in WCAG

WCAG Success Criterion 1.4.12 names four properties and a minimum value for each, expressed relative to the font size. A page conforms when no content or functionality is lost after a user sets all four at once.

PropertyMinimum user settingCSS property
Line heightAt least 1.5 times the font sizeline-height
Paragraph spacingAt least 2 times the font sizemargin-bottom on paragraphs
Letter spacingAt least 0.12 times the font sizeletter-spacing
Word spacingAt least 0.16 times the font sizeword-spacing
Text spacing values from WCAG 1.4.12

These figures are test thresholds, not design targets. A designer may choose tighter defaults for visual reasons, provided the layout still works when a reader applies the larger values. Exceptions exist for human languages and scripts that do not use one or more of these properties, and for text in images, which falls under a separate criterion.

Why spacing changes reading performance

Spacing affects reading because it controls visual crowding, the effect in which neighboring letters and lines interfere with recognition of the target character. Crowding is stronger in peripheral vision and in many forms of low vision, and it is commonly reported as a barrier by readers with dyslexia.

Generous line height makes it easier to return to the start of the next line without skipping or rereading. Extra letter and word spacing separates glyphs and word boundaries, which can reduce errors for some readers. Research findings on the size of the benefit vary, and individual preference differs widely, which is exactly why WCAG focuses on user control rather than one universal setting.

The table below summarizes how each property supports particular reader groups.

AdjustmentMain benefitReader groups helped most
Increased line heightEasier line trackingLow vision, attention differences
Increased paragraph spacingClearer content chunksCognitive and learning disabilities
Increased letter spacingReduced glyph crowdingDyslexia, macular conditions
Increased word spacingClearer word boundariesDyslexia, early readers
Who benefits from each spacing adjustment

Text spacing is one part of a broader group of requirements that protect readable, adaptable text. It is often confused with resizing and reflow, but each criterion tests a different user adjustment.

RequirementUser adjustment testedWCAG reference
Text spacingLarger line, paragraph, letter and word spacing1.4.12, Level AA
Resize textText enlarged up to 200 percent1.4.4, Level AA
ReflowContent viewed at 320 CSS pixels wide1.4.10, Level AA
Contrast ratioSufficient luminance difference1.4.3, Level AA
Visual presentationLine length, alignment and spacing controls1.4.8, Level AAA
Text spacing and neighboring requirements

Text spacing also overlaps with accessible typography and dyslexia-friendly typography, which cover default design choices. The WCAG criterion, by contrast, is a robustness requirement: it tests whether the design survives a reader’s changes.

Building layouts that tolerate spacing overrides

Layouts pass text spacing tests when containers grow with their content instead of clipping it. The most reliable approach is to size text containers by content and to avoid fixed heights on elements that hold text.

  • Use relative units such as em, rem and unitless line height rather than fixed pixel heights.
  • Avoid fixed heights with hidden overflow on buttons, cards, tabs and navigation items.
  • Let flex and grid items wrap to new lines when labels become wider.
  • Do not apply spacing with !important declarations that block user style sheets.
  • Allow truncated labels to expand or provide the full text in an accessible way.

Testing is straightforward. Auditors apply a text spacing bookmarklet or a small user style sheet that sets all four values at once, then check every component for clipped, overlapping or hidden text. Automated scanners cannot reliably detect these failures, so manual review remains necessary.

Common text spacing failures

Most failures come from rigid component dimensions designed around one font size and one language. When spacing increases, the text needs more room, and fixed boxes either cut it off or let it spill over other content.

SymptomLikely causeFix
Clipped button labelsFixed height with hidden overflowUse padding and minimum height
Overlapping linesAbsolute positioning of text blocksUse normal document flow
Hidden menu itemsFixed-width navigation barAllow wrapping or a menu toggle
Cut-off tooltip textPixel-sized tooltip containerSize the container by content
Ignored user settingsSpacing set with !importantRemove the forced declarations
Typical failures, causes and fixes

A frequent misunderstanding is that authors must ship these larger values by default. They do not; the obligation is that content remains complete and usable when readers apply them.

In everyday language

Text spacing is about the empty room around words: the gaps between lines, paragraphs, letters and words. Many people read more easily when those gaps are larger, so they change them with browser settings or special tools.

A well-built website keeps working when someone does this. Nothing gets cut off, covered up or pushed out of view. It is a bit like a suitcase with expandable sides: if you pack a little more, the case stretches instead of bursting at the zipper.

Seen in the real world

A public library redesigns its online catalog and commissions an accessibility audit before launch. The auditor applies a style sheet that sets line height to 1.5, paragraph spacing to 2, letter spacing to 0.12 and word spacing to 0.16 times the font size, then walks through searching, reserving and renewing books.

Two problems appear. The Reserve button has a fixed height of 32 pixels, so its label is cut in half, and the filter tabs sit in a fixed-width bar, so the last tab disappears entirely. A patron with dyslexia who uses a spacing extension daily would be unable to reserve a book or filter results.

The developers replace the fixed heights with padding and allow the tab bar to wrap onto a second line. On retest, all content remains visible and operable, and the catalog meets WCAG 1.4.12 before it goes live.