Google
CSS Max-Height Property

Description:
Specifies the maximum height to be used for an element.
Syntax:
max-height: [value];
Possible Values:
  • [length]
  • [percentage]
  • none
  • inherit
Initial Value:
None
Applies To:
All elements except non-replaced inline elements and table elements
Inherited:
No
Media:
Visual
Example:
h1 {max-height: 250px;}