CSS: Letter Spacing, Word Spacing

By Xah Lee. Date: . Last updated: .

Letter Spacing

letter-spacing:normal

letter-spacing:0.5ex

letter-spacing:0.7ex

letter-spacing:1ex

letter-spacing:2ex

Note: ex is height of the letter x. 〔➤see CSS: Units

syntaxmeaning
letter-spacing:normalnormal.
letter-spacing:css_lengthuse css_length. For example, letter-spacing:2ex 〔➤see CSS: Units
syntaxmeaning
letter-spacing:initialbrowser default
letter-spacing:inheritinherit from parent

Word Spacing

the alphabet song a b c. normal

the alphabet song a b c. 2ex

the alphabet song a b c. 3ex

the alphabet song a b c. 4ex

syntaxmeaning
word-spacing:normalnormal.
word-spacing:css_lengthuse css_length. For example, word-spacing:3ex. 〔➤see CSS: Units
syntaxmeaning
word-spacing:initialbrowser default
word-spacing:inheritinherit from parent
Like what you read? Buy JavaScript in Depth
or, buy a new keyboard, see Keyboard Reviews.