Easy Tutorial
❮ Met Audio Pause Event Onblur ❯

wordSpacing Property


Definition and Usage

The wordSpacing property sets or returns the space between words in a text.

Syntax

Setting the wordSpacing property:

Returning the wordSpacing property:

Value Description
normal Default. Defines the standard space between words.
length Defines the space between words using units like px, cm, etc. Negative values are allowed.
inherit The value of the wordSpacing property is inherited from the parent element.

Browser Support

All major browsers support the wordSpacing property.

Note: IE7 and earlier versions do not support the "inherit" value. IE8 only supports "inherit" if !DOCTYPE is specified. IE9 supports "inherit".


Example

Change the space between words:

❮ Met Audio Pause Event Onblur ❯