max-height |
Hauteur maximum |
| Tailwind CSS |
Classe
Description
Cet utilitaire fixe la hauteur maximale d'un élément, empêchant qu'il dépasse une certaine dimension verticale malgré l'espace disponible.
Définition
| Classe |
Styles |
| max-h-<nombre> |
max-height: calc(var(--spacing) * <nombre>); |
| max-h-<fraction> |
max-height: calc(<fraction> * 100%); |
| max-h-none |
max-height: none; |
| max-h-px |
max-height: 1px; |
| max-h-full |
max-height: 100%; |
| max-h-screen |
max-height: 100vh; |
| max-h-dvh |
max-height: 100dvh; |
| max-h-dvw |
max-height: 100dvw; |
| max-h-lvh |
max-height: 100lvh; |
| max-h-lvw |
max-height: 100lvw; |
| max-h-svh |
max-height: 100svh; |
| max-h-svw |
max-height: 100svw; |
| max-h-min |
max-height: min-content; |
| max-h-max |
max-height: max-content; |
| max-h-fit |
max-height: fit-content; |
| max-h-lh |
max-height: 1lh; |
| max-h-(<propriete-personnalisee>) |
max-height: var(<propriete-personnalisee>); |
| max-h-[<valeur>] |
max-height: <valeur>; |
Dernière mise à jour : Vendredi, le 6 février 2026