CSS height property

Usage

Defines the height of an element.

Values

  • auto - the height of the element is automatically calculated
  • [length] - allows you to set a specific height for the element
  • [percentage] - specifies the element height as a percentage of the height of the containing element

Example

Code:

div {
  height: 5em;
}