Fandom

HTML & CSS Wiki

Letter-spacing

649pages on
this wiki
Add New Page
Comments0 Share

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.


ValuesEdit

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;
}

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.