CSS letter-spacing property
Examples
Set to h1 and h2 elements of letter-spacing:
h1 {letter-spacing: 2px}
h2 {letter-spacing: -3px}
h2 {letter-spacing: -3px}
Attribute definitions and instructions
letter-spacing property increases or decreases blank (character spacing) between characters
Defaults: | normal |
---|---|
inherit: | yes |
version: | CSS1 |
JavaScript syntax: | object .style.letterSpacing = "3px" |
Browser Support
Figures in the table represent the first browser to support the version number of the property.
属性 | |||||
---|---|---|---|---|---|
letter-spacing | 1.0 | 4.0 | 1.0 | 1.0 | 3.5 |
Property Value
value | description |
---|---|
normal | default. Between the provisions of the characters do not have extra space. |
length | Fixing space defined between the characters (Negative values are allowed). |
inherit | Provisions should inherit the property letter-spacing value from the parent element. |
related articles
CSS tutorial: CSS the Text