style.lineHeight (Property)

Defines the height of a box that contains a line of text. This is the distance between the base lines of two adjacent lines of text.


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.lineHeight
CSS syntax:line-height: aLineHeight
Argument list:aLineHeightA line height value

This property provides a way to adjust the leading or spacing between the lines of text. The value in this property describes the height of a bounding box that surrounds a single line of text.

This property can have a length value specified in pixels or floating point multiples of an em-dash in the current font. The normal keyword can also be used to restore the default behavior.

See also:JSSTag.lineHeight, style.font