Syntax | selector {min-height: value ;}
|
---|---|
Usage | The min-height property is used to specify the minimum height of the content area of an element's box. (See CSS Box Model for information concerning the boxes that are generated for elements.) The min-height property does NOT include the height of the padding, border, or margin areas. This property is specified by using a length, percentage, or keyword, according to the syntax shown above. Negative values are not permitted. If a percentage value is used, the value will be a percentage of the containing block. CSS Example: The min-height property is set using a length value. p {min-height: 100px; background-color: orange;} |
Keywords |
|
Applies To | In general, this property applies to block-level elements and replaced elements. |
Inherited | No |
Initial Value | 0 |
The min-height property is set using a length value. |