Educational guide to word-spacing
Give words room to breathe
Adjust the distance between words without altering their letters. Compare units, inheritance, and tracking, and see what happens in text without word separators.
Mental model
word-spacing adds or removes space at word separators left after white space processing. The font’s own spacing remains part of the result: setting 0 does not join words together.
- Existing separator
An ordinary space, such as the one between two Latin words, has its own width. Without separators, no new gaps are invented between words.
- Added adjustment
normal adds no space; a positive length increases it and a negative one reduces it. The result also depends on the font.
- Recomposed line
The new gaps can change line breaks. Use gap or margins to separate interface elements, rather than spaces inside text.
Word spacing versus tracking
Use word-spacing to adjust separators and letter-spacing for tracking between typographic units. The same length does not have the same effect: it acts at different places in the text.
One phrase with five settings
word-spacing: normal
Read with space
word-spacing: 0
Read with space
word-spacing: -0.05em
Read with space
word-spacing: 0.2em
Read with space
Comparison · letter-spacing: 0.2em
Read with space
These values are tests, not a legibility scale. Excessive negative spacing can visually merge words, while excessive positive spacing disrupts reading rhythm. With white-space: normal, repeated ordinary spaces collapse before the adjustment applies.
Units and inheritance
em uses the font-size of the element declaring the length, rem uses the root size, and px sets a fixed CSS length. word-spacing inherits: a descendant receives an already computed em length, rather than a factor multiplied again by its own size.
Inherit a length or calculate it again
0.2em on the parent; the descendant inherits
Read with space
Read with space
0.2em on the parent and declared again on the descendant
Read with space
Read with space
Declare em at each size that should keep the local proportion. Use rem when the adjustment should follow the root, and check the font actually used. The separator’s natural spacing can change even when the added amount stays the same.
Separators and writing systems
The property does not segment a language to insert spaces. Japanese or Thai text may lack separators even when the browser recognizes line break opportunities. In Arabic, adjusting space between words differs from separating connected letters.
With and without separators
Arabic · normal
مرحبا بالعالم
Arabic · word-spacing: 0.2em
مرحبا بالعالم
Japanese · normal
読みやすい文字
Japanese · word-spacing: 0.2em
読みやすい文字
Not every white space character is a word separator. A no-break space (U+00A0) accepts the adjustment while retaining its line break restriction; a zero-width space does not gain a new gap through word-spacing. Review each language’s conventions and fonts.
Common pitfalls
Words look like a single word
- Expected result
- Word boundaries remain clear.
- Cause
- A negative value removes too much of the separator’s natural width.
- Solution
- Return to normal, compare a small adjustment, and allow wrapping. Do not compress text simply to force it onto one line.
The value changes but the text does not
- Expected result
- The adjustment is visible where word separators exist.
- Cause
- The text may have no separators, or may use characters that do not receive this adjustment.
- Solution
- Inspect the actual text and compare a phrase with ordinary spaces. Do not insert artificial spaces to force one writing system to behave like another.
User spacing clips the content
- Expected result
- The block grows and preserves its content and actions.
- Cause
- A fixed height, nowrap, or overflow clipping prevents reflow.
- Solution
- Test the combined WCAG 1.4.12 settings, including 0.16em word-spacing, without losing content or functionality. This checks adaptability; it does not require those values as the initial style.
Support and compatibility
normal and lengths are Baseline Widely Available. Percentages have a different history: BCD lists Chrome 145, Firefox 45, and Safari 17.4 as the first versions. Current CSS Text Level 4 and MDN define them relative to the text’s font-size, not the container width or the font’s natural space.
An em base before the percentage
Base · word-spacing: 0.2em
Read with space
Progressive enhancement · 20% if accepted
Read with space
The playground already offers percentages. @supports checks syntactic acceptance; it does not prove the reference used by every older version or certify layout in every language. To keep results stable across those versions, retain the em length and test your target browsers.