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:
- {letter-spacing: 0.5em} Example using the em unit.
- {letter-spacing: 0.3ex} Example using the ex unit.
- {letter-spacing: 0.25in} Example using inches.
- {letter-spacing: 3mm} Example using millimeters.
- {letter-spacing: 0.2cm} Example using centimeters.
- {letter-spacing: 15pt} Example using points.
- {letter-spacing: 1.5pc} Example using picas.
- {letter-spacing: 7px} Example using pixels.
