Easy Tutorial
❮ Pr Outline Color Pr Gen Counter Increment ❯

CSS word-spacing Property

Example

Specify the space between words, which should be 30 pixels:


Property Definition and Usage

The word-spacing property increases or decreases the white space between words.

Note: Negative values are allowed.

Default value: normal
Inherited: yes
--- ---
Version: CSS1
--- ---
JavaScript syntax: object.style.wordSpacing="10px"
--- ---

Browser Support

The numbers in the table specify the first browser version that fully supports the property.

Property
word-spacing 1.0 6.0 1.0 1.0 3.5

Property Values

Value Description
normal Default. Defines standard space between words.
length Defines a fixed space between words.
inherit Specifies that the value of the word-spacing property should be inherited from the parent element.

Related Articles

CSS Tutorial: CSS Text

❮ Pr Outline Color Pr Gen Counter Increment ❯