CSS min height Property
CSS min-height Property
The min-height property is used to specify the minimum height of an element. If the content is larger than the minimum height, it will overflow. However, it can be managed by overflow property. If the content is smaller than the minimum height, the min-height property has no effect.
Default Value:-
Its default value is 0.
Syntax:-
Its syntax is:- min-height: none | length | initial | inherit;
Further Explanation:-
Value | Description |
---|---|
length | Defines the minimum height in px, etc. |
% | Defines the minimum height in percent of the containing block |
initial | Sets this property to its default value. |
inherit | Inherits this property from its parent element. |