CSS height property

CSS height

CSS height property is used to set the height of an element.

In default, the content areas height is set.

The min-height and max-height properties override height property.

Negative values are not allowed. height property does not apply to any non-replaced inline elements.

Example

Try Yourself