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
|
|
|
See why there are 20,000+ Ektron integrations worldwide.
Request an INSTANT DEMO or download a FREE TRIAL today. |
|
|
|