CSS min-height Property

CSS's min-height property is used to specify an element's minimum height. The min-height property is used when the element's content is smaller than the min-height, and it has no effect when the content is larger than the min-height. This property ensures that the height property's value is not less than the element's specified min-height value.




Property Values

Value Description
none There is no maximum height. This is the default setting.
length Defines the maximum height in pixels, centimeters, and so on. Learn more about length units.
% Defines the maximum height of the containing block in percentage terms.
initial This property is set to its default value.
inherit This property is inherited from its parent element.

Supported Browsers

Property Chrome Firefox Safari Edge / IE Opera
min-height 1.0 3.0 2.0 7.0 4.0