CSS Demo: max-height
Reset
Interactive examples cannot be shown because JavaScript is disabled.
This feature is not supported by your current browser. Check Browser compatibility for more details.
max-height: 150px;
Copy to Clipboard
max-height: 7em;
Copy to Clipboard
max-height: 75%;
Copy to Clipboard
max-height: 10px;
Copy to Clipboard
This is a box where you can change the maximum height.
This will limit how tall the box can be, potentially causing an overflow.
Copied!