basics of website design banner photo

HTML

HTML 5

CSS 2.1

CSS 3

Reference

CSS letter-spacing Property

The letter-spacing property sets the distance between letters.

Possible Values

  • em - relative unit - the width of the 'font-size' of the font in use.
  • ex - relative unit - the height of the letter 'x' in the current font.
  • in - absolute unit - inches.
  • mm - absolute unit - miilimeters.
  • cm - absolute unit - centimeters.
  • pt - absolute unit - points - a point is 1/72nd of an inch.
  • pc - absolute unit - picas - one pica = 12 pt.
  • px - absolute unit - pixel - one pixel = 0.75 pt.
  • inherit - the value is inherited from the parent element - the initial value.

An important point to remember is that the length given using the letter-spacing property is ADDED to the default spacing distance for the current font.

Letter-spacing examples:

CSS 2.1 Property List