word-spacing property CSS Reference

Definition and Usage

The word-spacing CSS property specifies spacing behavior between tags and words.

  • Initial normal
  • Applies to all elements
  • Inherited yes
  • Percentages refer to the width of the affected glyph
  • Media visual
  • Computed Value an optimum, minimum, and maximum value, each consisting of either an absolute length, a percentage, or the keyword normal
  • Animatable yes, as a length
  • Canonical order the unique non-ambiguous order defined by the formal grammar


Formal syntax: normal | <length>
word-spacing: normal    /* Keyword value */
word-spacing: 3px       /* <length> values */
word-spacing: 0.3em
word-spacing: inherit


The normal inter-word space, as defined by the current font and/or the browser.
See <length> value for possible units.


#mozdiv1 {
  word-spacing: 15px;
#mozdiv2 {
  word-spacing: 5em;


Desktop browsers

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari
Basic support 1.0 1.0 (1.7 or earlier) 6.0 3.5 1.0 (85)

Mobile browsers

Feature Android Firefox Mobile (Gecko) IE Mobile Opera Mobile Safari Mobile
Basic support NA NA NA NA NA

Relative articles