The letter-spacing
property is used in CSS and certain HTML elements. It specifies the spacing between text characters. It controls the space in addition to the default spacing between letters in a given section.
Values[]
Value | Description |
---|---|
inherit |
Explicitly sets the value of this property to that of the parent. |
normal |
The spacing is the normal spacing for the current font. This value allows the user agent to alter the space between characters in order to justify text. |
<length> |
Indicates inter-character space in addition to the default space between characters. Values may be negative, but there may be implementation-specific limits. User agents may not further increase or decrease the inter-character space in order to justify text. Examples of length values are pt , em , px , etc.
|
HTML example:
<span style="letter-spacing:10px;">QWERTY</span>
That produces: QWERTY
CSS example:
h1 { letter-spacing:5px; }