Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
word-spacing

Values:

[ normal | <length> | <percentage> ]{1,3}

Initial value:

normal

Applies to:

All elements

Inherited:

Yes

Percentages:

Refer to the width of the Unicode space glyph (U+0020) of the element’s font face

Computed value:

For length values, the absolute length; otherwise, normal

Description:

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.

Examples:

p.spacious {letter-spacing: 6px;}
em {letter-spacing: 0.2em;}
p.cramped {letter-spacing: −0.5em;}

Note:

In CSS2.1, word-spacing only accepts a single value: either a <length> or normal.