letter-spacing | NN 6 IE 4 CSS 1 |
Inherited: Yes | |
Defines the spacing between characters within an element. Browsers normally define the character spacing based on font definitions and operating-system font rendering. To override the settings, assign a length value to the letter-spacing attribute. A negative value tightens the spacing, but test the effect on the selected font for readability on different operating systems. |
|
CSS Syntax | |
letter-spacing: length | normal
|
|
Value | |
See the discussion at the beginning of this chapter about length values. The best results use units that are based on the rendered font size (em and ex). A setting of normal is how the browser sets the letters without any intervention. |
|
Initial Value | |
normal |
|
Example | |
.tight {letter-spacing: -0.03em} blockquote {letter-spacing: 1.1em} |
|
Applies To | |
All elements. |
|
Object Model Reference | |
[window.]document.getElementById("elementID").style.letterSpacing
|