Sub topic 13
Word Spacing and How It Relates to Tracking
This chapter assumes you know what kerning and tracking are, you can read em values, and you have written basic CSS. It covers the space between words, which is a separate setting from the space between letters, and the way tracking changes it.
What word spacing is
Word spacing is the width of the gap between words. In a font, that gap is the glyph for the space character (U+0020). Like any glyph, it has an advance width, usually around 0.2 to 0.3 em. Changing the word space changes how clearly words separate, but it does not change the spacing inside each word.
How tracking affects word spaces
Tracking adds the same amount of space after every character. A space character is a character, so tracking widens the word gaps too. In CSS, letter-spacing is applied after each character, including spaces.
Suppose a font's space is 0.25 em wide and you set letter-spacing: 0.1em. The visible gap between words becomes about 0.35 em. The letters inside each word also move apart by 0.1 em, so the gap is still larger than the letter spacing and words stay distinct.
The reverse happens with negative tracking. At letter-spacing: -0.05em, the word gap shrinks to about 0.2 em. Tight tracking on a headline can leave words looking crowded, even though the letters look right.
Setting word spacing in CSS
The word-spacing property adds space to each word separator. Positive values widen gaps and negative values narrow them.
.headline {
font-size: 4rem;
letter-spacing: -0.03em;
word-spacing: 0.05em;
}
.tracked-caps {
text-transform: uppercase;
letter-spacing: 0.1em;
word-spacing: -0.05em;
}In the first rule, word-spacing compensates for the tight letter-spacing. In the second rule, it pulls back the extra gap that tracking adds between words in all caps.
Use em for both properties so the values scale with the font size.
Tracking and word spacing together
The two controls interact, so adjust them in order:
- Set tracking for the letters first.
- Look at the word gaps.
- Use word spacing to correct the gaps, not to fix letter problems.
The table shows typical situations.
| Situation | Letter-spacing | Word-spacing adjustment |
|---|---|---|
| Large headline, tightened | Slightly negative | Often slightly positive, to restore the gap |
| Body text | Default (0) | Usually none |
| Small all caps, opened up | Positive | Often slightly negative, or none |
Gotchas
- Do not use word spacing to fix a kerning problem. It only affects the gaps between words, so it cannot repair a bad pair such as "AV" inside a word.
- Justified text. Browsers stretch word spaces to fill each line. Extra
word-spacingadds to that, and it can make rivers (vertical channels of white space) worse. Keep changes small. - Rounding of the tracking value. Tracking from a design tool is in thousandths of an em. A value of 50 becomes
0.05em. Convert it before you decide on word spacing, so you start from the real gap. - Judge by eye. Read a full line, not isolated words. The gap is right when the words are clearly separate and the line still reads as an even texture.
Exercise
A headline uses letter-spacing: -0.04em, and the words now look crowded together. Which property would you adjust to fix the gaps without changing the letter spacing, and in which direction?
Show answer
Use word-spacing with a small positive value, such as 0.06em. Negative tracking shrinks the space character along with the letters, so a positive word-spacing restores the gap between words.
Exercise
A design tool shows tracking of 100 on an all-caps label. What is the CSS letter-spacing value, and why might the word gaps look too wide?
Show answer
100 / 1000 = 0.1em. Tracking is also applied after each space, so the gap between words grows by 0.1 em on top of the space glyph's width. A small negative word-spacing, such as -0.05em, can bring it back.