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,
Set the minimum height of the paragraph:
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" |
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 |
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. |
CSS tutorial: CSS a Dimension
CSS Reference Manual: MAX-height property