CSS Demo: max-height
Reset
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!