Line-height

The   property is used in CSS and certain HTML elements. On inline elements, this property specifies the height that is used in the calculation of the line box height. On block-level elements, it specifies the minimal height of line boxes within the element.

Values

 * - Depends on the user agent. Desktop browsers use a default value of roughly, depending on the element's.
 * - The used value is this unit-less  multiplied by the element's font size. The computed value is the same as the specified  . In most cases this is is the preferred way to set   with no unexpected results in case of inheritance.
 * - The specified  is used in the calculation of the line box height. Examples of length values are ,  ,  ,  , etc.
 * - Relative to the font size of the element itself. The computed value is this percentage multiplied by the element's computed font size.

Note:  and   values may have unexpected results.

HTML example:

QWERTY

CSS example:

h1 { line-height:10px; }