CSS Text - word-spacing
Description
Use the word-spacing property to adjust the amount of space between words in text within html elements.
Note: negative values cause words to be closer together.
The default is
normal which is the same as 0.
word-spacing: length /* e.g. 0.8em or 2px */
word-spacing: normal;
word-spacing: inherit;
See also: letter-spacing.
Examples for word-spacing
Example 1:
A positive word-spacing example:
test text test text test text test text
<style>
#test { word-spacing: 5px; }
</style>
<div id="test">test text test text test text test text</div>
Example 2:
A negative word-spacing example:
test text test text test text test text
<style>
#test2 { word-spacing: -0.6em; }
</style>
<div id="test2">test text test text test text test text</div>
Values for word-spacing
| word-spacing |
length e.g. 1px or 1.2em normal inherit |
normal is the default. Specify the size of the space between words in html text. |