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