Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
| word-spacing |
[ normal | <length> | <percentage> ]{1,3}
normal
All elements
Yes
Refer to the width of the Unicode space glyph (U+0020) of the element’s font face
For length values, the absolute length; otherwise, normal
Defines the amount of whitespace to be inserted between words. Note that the specification does not define what constitutes a “word.” In typical practice, user agents will apply this to the collapsed whitespace between strings of nonwhitespace characters. Negative length values are permitted and will cause words to bunch closer together.
p.spacious {letter-spacing: 6px;}
em {letter-spacing: 0.2em;}
p.cramped {letter-spacing: −0.5em;}In CSS2.1, word-spacing only accepts a single value: either a <length> or normal.