Easy Tutorial
❮ Prop Namednodemap Length Prop Number Name ❯

minHeight Property


Definition and Usage

The minHeight property sets or returns the minimum height of an element.

The minHeight property only works on block-level elements or elements with absolute/fixed positioning.

Syntax

Setting the minHeight property:

Returning the minHeight property:

Value Description
length Defines the minimum height using units like px, cm, etc. The default is 0.
% Defines the minimum height as a percentage of the parent element.
inherit The value of the minHeight property is inherited from the parent element.

Browser Support

All major browsers support the minHeight property.

Note: IE7 and earlier versions do not support the "inherit" value. IE8 only supports "inherit" if the !DOCTYPE is specified. IE9 supports "inherit".


Example

Setting the minimum height of an element:

❮ Prop Namednodemap Length Prop Number Name ❯