ScanSkill

line-height

The line-height property defines the height of a line of an element.

Syntax

line-height: normal | value ;

Example

    .div-1 {
            border: 1px solid red;
            line-height: normal;
        }

        .div-2 {
            border: 1px solid red;
            line-height: 30px;
        }

Property Values

normal: sets a normal line height. (default value)

value: sets the given value as the line height.