By using this site you agree to the use of cookies by Brugbart and our partners.

Learn more

CSS Max-height Property

Reference on the Max-height Property of CSS. Includes a list of possible values, and a useful example.

Edited: 2011-11-09 22:13

The CSS Max-height Property of CSS is used to control the maximum height for elements.

Some elements can be resized, so its recommended to give those elements a max-width. An example of such would be textarea.

Possible Values

Read: Units of Measurement, to understand the many possible values.

CSS Max-height Example

form textarea {
  min-height: 250px;
  max-height: 400px;

Inherited? - NO!