# Property Description

The max-height property sets the maximum height of an element. This does not include padding, borders, or margins.

# Property Values

Value | Description
--- | ---
none | (default) No maximum height
length | Defines the maximum height in px, cm, etc.
% | Defines the maximum height in percent of the containing block
inherit1 | Specifies that the value of the property should be inherited from the parent element

# Examples

This example sets the maximum height for a paragraph.

    p.note {
      max-height:100px;
    }

# Browser Support

Firefox | IE | Chrome | Opera | Safari

1 - 'inherit' not supported by IE

# Miscellaneous Information

Inherited: | No
Defined In: | CSS2