Little Web Hut

CSS 2.1 Reference: letter-spacing Property

CSS letter-spacing Property
Syntax
selector {letter-spacing: value;}
  • value is specified by using a length or one of the following keywords: normal or inherit.
Usage

The letter-spacing property is used to control the spacing between text letters. If a length value is used, then the specified length is added to the default space between letters. Negative length values are permitted.

This property is specified by using a length, or a keyword, according to the syntax shown above.


CSS Example: The letter-spacing property is set to 5 pixels.
  #tst1 {letter-spacing: 5px;}
Test It HTML StyleTest It XHTML StyleTest It HTML5 Style

Keywords
  • normal - Specifies normal letter spacing for the current font. The browser may modify the spacing to justify the text.
  • inherit - The inherit keyword is used to specify that the value for this property should be taken from the parent element. If inherit is used with the root element, then the initial value for this property will be used.
Applies To All elements
Inherited Yes
Initial Value normal


letter-spacing Property Examples
Test It HTML StyleTest It HTML StyleTest It HTML5 StyleThe letter-spacing property is set to 5 pixels.