Glossary · Code

Text spacing

Definition: Text spacing is the space between lines, paragraphs, letters and words. WCAG 1.4.12 (Level AA) does not prescribe particular spacing; it requires a page to cope with more of it: when users increase spacing with their own settings, no content or function may be lost [1].

German: Textabstände · Last reviewed: 27 September 2026

Who it helps

Many people with dyslexia or low vision read more easily when lines and words sit further apart. They set this with browser extensions, user stylesheets or reading tools. That only helps if the layout grows with the text instead of clipping buttons or stacking lines on top of each other.

The four values

A page must cope with at least these settings without losing anything [1][2]:

The four values
PropertyValue
Line height1.5 times the font size
Spacing after paragraphs2 times the font size
Letter spacing0.12 times the font size
Word spacing0.16 times the font size

The page does not have to use these values itself. It just must not break when somebody applies them. Languages and scripts that do not use one of these properties are only held to the others [2].

An example: at a 16-pixel font size, that means a 24-pixel line height, 32 pixels after each paragraph, almost 2 extra pixels between letters and over 2.5 pixels between words. Text with long words runs noticeably wider – and that is where rigid layouts break first.

Common mistakes

  • Fixed heights on buttons, cards or menu items: the text grows, the box does not, and the rest is cut off.
  • overflow: hidden on containers that hold text.
  • Inline styles with !important that override the user's own settings.
  • Text in images, which cannot adapt at all.

In code

/* Text gets cut off */
.card-title {
  height: 48px;
  overflow: hidden;
}
/* The box grows with the text */
.card-title {
  min-height: 48px;
}

How to test it

The W3C points to a bookmarklet that applies the four values to any page [2]. You can also set them as CSS in the developer tools. Then work through the page: is text cut off, does anything overlap, has a button disappeared?

How Reviseberg handles it

Reviseberg uses the axe-core rule avoid-inline-spacing to report inline styles that pin spacing with !important and so block the user's own settings. Whether the page still works with larger spacing is something axe-core does not test; a person has to check with the values above. Reviseberg therefore treats 1.4.12 as only partly testable by automation.

Reflow · Screen magnifier · Plain language · Contrast ratio

Further reading

Frequently asked questions

Does my website need a line height of 1.5?

No. 1.4.12 only requires the page to cope with these values when users set them.

Does 1.4.12 apply to PDFs and images?

It applies to text set with HTML and CSS. Text inside images falls under 1.4.5 Images of Text.

What is the quickest way to find clipped text?

Apply the four values with a bookmarklet or CSS and watch buttons, navigation, cards and form fields – that is where fixed heights usually sit.

Sources

  1. W3C, WCAG 2.2, Success Criterion 1.4.12 Text Spacing – https://www.w3.org/TR/WCAG22/#text-spacing
  2. W3C, Understanding SC 1.4.12 Text Spacing – https://www.w3.org/WAI/WCAG22/Understanding/text-spacing
  3. Deque, axe-core (rule avoid-inline-spacing) – https://github.com/dequelabs/axe-core

See what a scan finds on your site

One page in about thirty seconds, no email needed. The full report covers up to 100 pages and a keyboard journey.