HomeMenu
Jesus · Bible · HTML · CSS · JS · PHP · SVG · Applications

line-height

Description

The line-height property for CSS specifies the minimal height of line boxes within the element.

Syntax

CSS

line-height: value;

JS

object.style.lineHeight = "value";

Values

<'line-height'> = normal | <number> | <length> | <percentage> | inherit
normal

Tells user agents to set the used value to a reasonable value based on the font of the element.

<number>

An integer or zero or more decimal digits followed by a dot (.) followed by one or more decimal digits. The first character may be preceded by a sign (- or +). The last character may be succeeded by an exponent (e or E) and an integer.

<length>

Specifies the length using a number followed by a unit of measurement.

<percentage>

Specifies the percentage using a number followed by a percent sign (%).

inherit

Specifies the same value as the parent.

Initial

normal

Examples

1 · length

2 · normal

3 · number

4 · percentage

5 · JS