Style lineHeight Property
Style lineHeight Property
The lineHeight property is used to either set or return the distance between lines in a text.
Syntax:-
Its syntax is:- object.style.lineHeight OR object.style.lineHeight = normal | number | length | % | initial | inherit
Return:-
Its return is:- string containing distance between lines in the text
Further Explanation:-
Value | Description |
---|---|
normal | Normal line height is used. |
number | A number will be multiplied by current font size to set line height. |
length | Defines line height in length units. |
% | Defines the line height in % of current font size. |
initial | Sets property to its default value. |
inherit | Inherits property from its parent element. |