![]() |
VOOZH | about |
The min-height property in CSS is used to set the minimum height of an element. The min-height property is used when the content of the element is smaller than the min-height and if the content is larger than the min-height then it has no effect. This property ensures that the value of the height property is not less than the specified height value of the element in consideration.
Syntax:
min-height: length|initial|inherit; Property Value:
Example: In this example, we are using the min-height: length property.
Output:👁 min height
Example: In this example, we are using the min-height: initial property.
Output:👁 min height
Supported Browsers: The browser supported by min-height property are listed below: