The best CSS Min-height property Tutorial In 2024, In this tutorial you can learn Examples,Attribute definitions and instructions,Browser Support,Property Value,related articles,

CSS Min-height property

Examples

Set the minimum height of the paragraph:

p
{
min-height: 100px;
}


Attribute definitions and instructions

Set the minimum height of the element of the min-height property.

Note: min-height property does not include padding, borders, or margins!

Defaults: 0
inherit: no
version: CSS2
JavaScript syntax: object .style.minHeight = "10px"


Browser Support

Figures in the table represent the first browser to support the version number of the property.

属性
min-height 1.0 7.0 3.0 2.0.2 4.0

Property Value

value description
length Define the minimum height of the element. The default value is 0.
% Definition is based on the percentage of the containing block-level object minimum height.
inherit Provisions should inherit the value min-height property from the parent element.


related articles

CSS tutorial: CSS a Dimension

CSS Reference Manual: MAX-height property

CSS Min-height property
10/30