Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

CSS Min-height property


May 05, 2021 CSS Reference Manual


Table of contents


CSS min-height property


Set the minimum height of the paragraph:

P
{
min-height:100px;
}

Try it out . . .

Description of property definition and use

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

Note: Min-height properties do not include padding, borders, or margins!

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


Browser support

The numbers in the table support the first browser version number of the property.

Attributes
min-height 1.0 7.0 3.0 2.0.2 4.0

The property value

Value Describe
length Defines the minimum height of the element. The default is 0.
% Defines the minimum height based on the percentage of block-level objects that contain it.
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 Manual: max-height properties