CSS word-spacingProperty
Example
Specifies the space between words, should be 30 pixels:
p
{
word-spacing:30px;
}
{
word-spacing:30px;
}
Try it Yourself »
Attribute definition and usage instructions
The word-spacing property increases or decreases the whitespace 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 indicate the first browser version number that supports the property.
| Property | |||||
|---|---|---|---|---|---|
| word-spacing | 1.0 | 6.0 | 1.0 | 1.0 | 3.5 |
Property value
| Value | Description |
|---|---|
| normal | Default. Defines the 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
other extensions