CSS Max-height Property

From http://www.w3schools.com (Copyright Refsnes Data)

# CSS max-height Property

Complete CSS Reference

## Definition

The max-height property sets the maximum height of an element.

Inherited: No

## JavaScript Syntax

CSS properties can also be dynamically changed with a JavaScript.

Scripting Syntax: object.style.maxHeight="10px"

In our HTML DOM tutorial you can find more details about the maxHeight property.

In our HTML DOM tutorial you can also find a full Style Object Reference.

## Example

p { max-height: 100px }

## Possible Values

Value | Description
--- | ---
none | Default. Defines no limit on the maximum height allowed for the element
length | Defines a maximum height for the element
% | Defines the maximum height for the element in % of the containing block

## Try-It-Yourself Demos

Set the maximum height of an element
This example demonstrates how to set the maximum height of an element.

Complete CSS Reference

From http://www.w3schools.com (Copyright Refsnes Data)