Style height Property
Style height Property
The height property is used to either set or return the height of an element. It is applicable to elements that have fixed or absolute positions or are block-level elements.
Syntax:-
Its syntax is:- object.style.height OR object.style.height = auto | length | % | initial | inherit
Return:-
Its return is:- string having the height of an element
Further Explanation:-
Value | Description |
---|---|
auto | The browser sets height. |
length | Defines height in length units. |
% | Defines height in % of the parent element. |
initial | Sets property to its default value. |
inherit | Inherits property from its parent element. |