Easy Tutorial
❮ Sel Out Of Range Sel Checked ❯

CSS min-height Property

Example

Set the minimum height of a paragraph:

p
{
    min-height:100px;
}

Property Definition and Usage

The min-height property sets the minimum height of an element.

Note: The min-height property does not include padding, border, or margin!

Default value: 0
Inherited: no
--- ---
Version: CSS2
--- ---
JavaScript syntax: object.style.minHeight="10px"
--- ---

Browser Support

The numbers in the table specify the first browser version that fully supports the property.

Property
min-height 1.0 7.0 3.0 2.0.2 4.0

Property Values

Value Description
length Defines the minimum height of the element. The default value is 0.
% Defines the minimum height as a percentage of the containing block's height.
inherit Specifies that the value of the min-height property should be inherited from the parent element.

Related Articles

CSS Tutorial: CSS Dimension

CSS Reference: max-height Property

❮ Sel Out Of Range Sel Checked ❯