The min-height 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 min-height value. If the value of min-height is greater than the value of max-height, the max-height property value becomes the min-height value. If the calculated value for the height property is less than the min-height value, the calculations are done again using the min-height value as the value for the height property.


  • inherit - Explicitly sets the value of this property to that of the parent.
  • <length> - Refers to an absolute measurement for the minimum computed element box height. Negative values are not allowed. Examples of lengths are px, em, cm, etc.
  • <percentage> - 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 auto.

HTML example:

<h1 style="min-height:2px; max-height:10px;">
H1 content.

CSS example:

h1 {

Ad blocker interference detected!

Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.