From http://www.w3schools.com (Copyright Refsnes Data)

CSS word-spacing Property


CSS Reference Complete CSS Reference

Definition

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

Inherited: Yes

Note: Negative values are allowed.


JavaScript Syntax

CSS properties can also be dynamically changed with a JavaScript.

Scripting Syntax: object.style.wordSpacing="10px"

In our HTML DOM tutorial you can find more details about the wordSpacing property.

In our HTML DOM tutorial you can also find a full Style Object Reference.


Examples

p

word-spacing: 30px
}

p

word-spacing: -0.5px
}  

Possible Values

Value Description
normal Default. Defines normal space between words  
length Defines a fixed space between words 
 

Try-It-Yourself Demos

Increase the white space between words
This example demonstrates how to increase the white space between words in a paragraph.


CSS Reference Complete CSS Reference

From http://www.w3schools.com (Copyright Refsnes Data)