concept

Text spacing — CSS reference

WCAG 2.2 AA 1.4.12 asks whether content tolerates user spacing overrides without loss: line height at least 1.5 times font size, following paragraph spacing at least twice font size, letter spacing at least 0.12em and word spacing at least 0.16em, with exceptions for scripts that do not use some properties. These are test settings, not mandatory default styling. Avoid fixed heights and overflow clipping.

Formal Syntax & Structure

css syntaxcss
line-height: 1.5; letter-spacing: 0.12em; word-spacing: 0.16em;

Working Example

Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>text-spacing</title><style>body{margin:8px;font:16px/1.5 sans-serif;color:black;background:white}#a{box-sizing:border-box}#a{max-inline-size:20rem;line-height:1.5;letter-spacing:.12em;word-spacing:.16em;margin-block-end:2em}</style><body><p id="a">Readable text can wrap when a reader increases spacing.</p><p>Following paragraph.</p></body></html>
CSS Reference