New! My 44-page ebook "CSS in 44 minutes" is out! 😃
Defines the maximum height the element can be.
The element has no limit in terms of height.
You can use numeric values like pixels, (r)em, percentages...
If the maximum height is larger than the element's actual height, the max height has no effect.
If the content does not fit within the maximum height, it will overflow. How the container will handle this overflowing content is defined by the overflow property.
Share this CSS property
Share on Twitter
Share on Facebook