CSS Max-height Property

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

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!

Post comment

Links that you insert are not nofollowed, but will be removed by admins if they are considered spam.

[url=Absolute URL for page]TITLE[/url]

You should insert code boxes around code examples, which will be automatically syntax highlighted.

[code1 html|css|javascript|php|sql]Your Code Here[/code1]

You may want to read our Privacy Policy before submitting your comment.