Min-height

The   property is used in CSS and certain HTML elements. This property allows a minimum height to be set for an element box. The calculation for the element's height may be greater than this value, but if the value falls below this value it will recompute the height based on the  value. If the value of  is greater than the value of , the   property value becomes the   value. If the calculated value for the  property is less than the   value, the calculations are done again using the   value as the value for the   property.

Values

 * - Explicitly sets the value of this property to that of the parent.
 * - Refers to an absolute measurement for the minimum computed element box height. Negative values are not allowed. Examples of lengths are,  ,  , etc.
 * - Refers to a percentage of height of the containing element block. If a height is not explicitly given for the containing block, it should be treated like.

HTML example:

 H1 content.

CSS example:

h1 { min-height:2px; max-height:10px; }