Name
max-height, min-height — NN n/a IE n/a CSS 2
Synopsis
Inherited: No
These attributes let you establish a minimum and/or maximum height for an element. You can bracket the permissible height of an element regardless of the height caused by the natural flow of the content.
CSS Syntax
max-height:length
|percentage
min-height:length
|percentage
Value
See the discussion of length values at the beginning of the chapter. The value may also be a percentage that is calculated relative to the element’s container.
Initial Value
0
(min-height); 100%
(max-height).
Applies To
All elements.
Get Dynamic HTML: The Definitive Reference now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.