CSS word-spacing Property
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.
Complete CSS Reference
Learn XML with Stylus Studio XML Tools - Free Download!
 |
|
Stylus Studio makes it easy to edit and validate XML, XSLT, DTD, XML Schema, XHTML, XPath, XQuery and Web Service applications.
Free XML video demonstrations will help you learn XML and become a W3C XML development master in just minutes!
Download a FREE Trial Now!
|
|