line-height | WebReference


Name: line-height

Description: Specifies the height of an inline element.

Browser Compatibility: IE 3+ / NN 4+ / O 3.5+

Inherited: Yes


Code Example:

div.main {line-height: 1.2; font-size: 10pt;}

div.main {line-height: 120%; font-size: 10pt;}

Comments: If the line-height is greater than that of the font-size, the difference is split between the bottom and top of the inline element, centering it within the line.