style.letterSpacing (Property)

The letter spacing of text in a style.


CSS level - 1
DOM level - 2
JavaScript - 1.5
JScript - 3.0
Internet Explorer - 4.0
Netscape - 6.0
Property/method value type:String primitive
JavaScript syntax:-myStyle.letterSpacing
CSS syntax:letter-spacing: aValue
Argument list:aValueA letter spacing factor

The text can be spaced out to fill a larger space or provide some emphasis. This property may also condense the spacing by specifying a negative value. The value specified is added to the normal spacing between characters.

You can use the pixel or em-dash length values and a floating point value can be specified for the em-dash measurement units. The normal keyword is reserved for restoring the value back to its default setting.

The auto keyword is also defined in the CSS specification and can be assigned to the property to let the browser assume control.

See also:Measurement units