htmlcss

The line-height 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

Note: <percentage> and em values may have unexpected results.


HTML example:

<span style="line-height:10px;">QWERTY</span>


CSS example:

h1 {
    line-height:10px;
}