min-h-screen for sticky footers; max-h-* for scrollable regions. This family contains 87 generated classes in Nakshora 3.0.
Classes#
| Class | Generated CSS |
|---|---|
max-h-0 | max-height: 0px; |
max-h-1 | max-height: 0.25rem; |
max-h-2 | max-height: 0.5rem; |
max-h-3 | max-height: 0.75rem; |
max-h-4 | max-height: 1rem; |
max-h-5 | max-height: 1.25rem; |
max-h-6 | max-height: 1.5rem; |
max-h-7 | max-height: 1.75rem; |
max-h-8 | max-height: 2rem; |
max-h-9 | max-height: 2.25rem; |
max-h-10 | max-height: 2.5rem; |
max-h-11 | max-height: 2.75rem; |
max-h-12 | max-height: 3rem; |
max-h-14 | max-height: 3.5rem; |
max-h-16 | max-height: 4rem; |
max-h-20 | max-height: 5rem; |
max-h-24 | max-height: 6rem; |
max-h-28 | max-height: 7rem; |
max-h-32 | max-height: 8rem; |
max-h-36 | max-height: 9rem; |
max-h-40 | max-height: 10rem; |
max-h-44 | max-height: 11rem; |
max-h-48 | max-height: 12rem; |
max-h-52 | max-height: 13rem; |
max-h-56 | max-height: 14rem; |
max-h-60 | max-height: 15rem; |
max-h-64 | max-height: 16rem; |
max-h-72 | max-height: 18rem; |
max-h-80 | max-height: 20rem; |
max-h-96 | max-height: 24rem; |
max-h-px | max-height: 1px; |
max-h-0.5 | max-height: 0.125rem; |
max-h-1.5 | max-height: 0.375rem; |
max-h-2.5 | max-height: 0.625rem; |
max-h-3.5 | max-height: 0.875rem; |
max-h-none | max-height: none; |
max-h-full | max-height: 100%; |
max-h-screen | max-height: 100vh; |
max-h-svh | max-height: 100svh; |
max-h-lvh | max-height: 100lvh; |
max-h-dvh | max-height: 100dvh; |
max-h-min | max-height: min-content; |
max-h-max | max-height: max-content; |
max-h-fit | max-height: fit-content; |
min-h-0 | min-height: 0px; |
min-h-1 | min-height: 0.25rem; |
min-h-2 | min-height: 0.5rem; |
min-h-3 | min-height: 0.75rem; |
min-h-4 | min-height: 1rem; |
min-h-5 | min-height: 1.25rem; |
min-h-6 | min-height: 1.5rem; |
min-h-7 | min-height: 1.75rem; |
min-h-8 | min-height: 2rem; |
min-h-9 | min-height: 2.25rem; |
min-h-10 | min-height: 2.5rem; |
min-h-11 | min-height: 2.75rem; |
min-h-12 | min-height: 3rem; |
min-h-14 | min-height: 3.5rem; |
min-h-16 | min-height: 4rem; |
min-h-20 | min-height: 5rem; |
…and 27 more in this family — search by class name to find the exact one.
Example#
example
<body class="min-h-screen flex flex-col">
<main class="flex-1">…</main>
</body>Responsive & variants#
Every class here accepts screen prefixes (sm: … xl:) and state variants — md:hover:p-4 style stacks compile to a single media query. See responsive/index|Responsive design and variants/index|Variants.
Best practices#
- min-h-screen + flex column + flex-1 main = sticky footer (see cookbook/sticky-footer|the cookbook)
Related#
utilities/layout/aspect-ratio|Aspect ratio · utilities/spacing/spacing-scale|Spacing scale
