Sizing
5.11
Lesson

Minimum Height

The min-height property is used to define the minimum height of an element.

If the content is larger than the value given to the min-height, this property has no effect. But, if it is smaller than the min-height value, the minimum height is applied.

When both min-height and height are defined, the larger of the two values is applied, as can be seen in the code examples given below: