document.tags.lineHeight

JavaScript 1.2+ Nav4+ Syntax

document.tags.tagName.lineHeight

Description

The lineHeight property specifies the distance between two lines that are next to each other. Using dot notation, the property is associated with the tag called tagName.

There are four types of values that are valid for the lineHeight property: number, length, percentage, and the value normal.

When a number is given without a unit of measure, it is multiplied by the font size of the element to give the line height. Length is specified by including a unit of measure after the number. A percentage is designated by including a percent sign (%) after the number to represent the line height as it relates to its parent.

Example

Listing 7.179 ...

Get Pure JavaScript now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.