--- title: max-height slug: Web/CSS/max-height tags: - CSS - 'CSS:Referencias' - Todas_las_Categorías translation_of: Web/CSS/max-height ---
<< Volver
La propiedad max-height se utiliza para definir la altura máxima de un elemento dado. Impide que el valor de la {{ Cssxref("height", "altura") }} pueda llegar a ser más grande que la de max-height.
max-height: <length> | <percentage>
table { max-width: 75%; }
form { max-width: none; }
{{ Cssxref("max-height") }} sobrescribe {{ Cssxref("height") }}, pero no {{ Cssxref("min-height") }}.
| Navegador | Versión mínima |
|---|---|
| Internet Explorer | 6 |
| Netscape | 6 |
| Opera | 3.5 |
{{ Cssxref("Modelo de caja", "modelo de caja") }}, {{ Cssxref("width", "ancho") }}, {{ Cssxref("-moz-box-sizing", "tamaño de cajas -Mozilla") }}, {{ Cssxref("min-height", "altura mínima") }}, {{ Cssxref("max-height", "altura máxima") }}
Categorías
Interwiki Languages
{{ languages( { "en": "en/CSS/max-height", "fr": "fr/CSS/max-height" } ) }}