Style minHeight Property
Style minHeight Property
The minHeight property is used to either set or return the minimum height of an element. It only works on those elements which are either in fixed or absolute position or are block-level elements. For either setting or getting the maximum height of an element, we use the maxHeight property.
Syntax:-
Its syntax is:- object.style.minHeight OR object.style.minHeight = none | length | % | initial | inherit
Return:-
Its return is:- string having a minimum height of an element
Further Explanation:-
Value | Description |
---|---|
length | Defines minimum height in length units. |
% | Defines minimum height in % of parent element. |
initial | Sets property to its default value. |
inherit | Inherits property from its parent element. |