CSS2 » Properties » word-spacing

Version: Level 1

Compability: IE6  N6

Syntax:
word-spacing : normal | length
length
The length value can be in any of the following seven units. Use the abbreviation.
 
Length Abbrev.
centimeters cm
ems em
inches in
millimeters mm
picas pc
pixels px
points pt
normal
The normal value is the default. By declaring normal, you can ensure that any previous declaration will not effect the selected text.

The word-spacing property increases or decreases the width of the blank (white) space between adjacent words. A positive value increases the width. A negative value decreases the width. This property is inherited.

Examples

Code:
p { word-spacing: normal; }
p { word-spacing: 1mm; }
p { word-spacing: 2.5em; }
Language(s): CSS2
Code:
<p style="word-spacing: 50px;">How now purple cow?</p>
Output:

How now purple cow?

Language(s): CSS2

See Also: