May 06, 2021 CSS Reference Manual
The word-space property increases or decreases the white space between words.
Note: Negative values are allowed.
Default: | normal |
---|---|
Inherited: | yes |
Version: | CSS1 |
JavaScript syntax: | object .style.wordSpacing="10px" |
Value | Describe |
---|---|
normal | Default. Define the standard space between words. |
length | Define the fixed space between words. |
inherit | Specifies that the value of the word-spacing property should be inherited from the parent element. |
The numbers in the table support the first browser version number of the property.
Attributes | |||||
---|---|---|---|---|---|
word-spacing | 1.0 | 6.0 | 1.0 | 1.0 | 3.5 |
The space between the specified segment words should be 30 pixels:
CSS tutorial: CSS Text