CSS letter-spacingProperty
Example
Set the letter spacing for h1 and h2 elements:
h1 {letter-spacing:2px}
h2 {letter-spacing:-3px}
h2 {letter-spacing:-3px}
Try it Yourself »
Attribute Definition and Usage Instructions
The letter-spacing property increases or decreases the white space between characters (character spacing).
| Default value: | normal |
|---|---|
| Inherited: | yes |
| version: | CSS1 |
| JavaScript Syntax: | object.style.letterSpacing="3px" |
Browser Support
The numbers in the table indicate the first browser version number that supports the property.
| Property | |||||
|---|---|---|---|---|---|
| letter-spacing | 1.0 | 4.0 | 1.0 | 1.0 | 3.5 |
Property value
| Value | Description |
|---|---|
| normal | Default. Specifies that there is no extra space between characters. |
| length | Defines a fixed space between characters (negative values are allowed). |
| inherit | Specifies that the value of the letter-spacing property should be inherited from the parent element. |
Related Articles
CSS Tutorial:CSS Text
other extensions