Property Description
The word-spacing property sets the white space between words.
This property has the following syntax:
word-spacing: normal|length|initial|inherit;
Property Values
Value | Description |
---|---|
normal | (default) Defines normal space between words |
length | Defines an extra space between words in px, pt, cm, em, etc. The value can be negative |
initial | Specifies that the value of the property should be set to the default value |
inherit | Specifies that the value of the property should be inherited from the parent element |
Examples
The following example shows the basic use of this property:
p {
word-spacing: 20px;
}
This produces the following result:
These words are spaced out
Browser Support
Chrome | Firefox | IE | Safari | Opera |
---|---|---|---|---|
1.0 | 1.0 | 6.0 | 1.0 | 3.5 |
Miscellaneous Information
Inherited: | Yes |
---|---|
Defined In: | CSS1 |
Default Value: | normal |