Min-height

Utilities for setting the minimum height of an element


Class reference

ClassProperties
min-h-0min-height: 0;
min-h-pxmin-height: 1px;
min-h-0.5min-height: 0.125rem;
min-h-1min-height: 0.25rem;
min-h-1.5min-height: 0.375rem;
min-h-2min-height: 0.5rem;
min-h-2.5min-height: 0.625rem;
min-h-3min-height: 0.75rem;
min-h-3.5min-height: 0.875rem;
min-h-4min-height: 1rem;
min-h-4.5min-height: 1.125rem;
min-h-5min-height: 1.25rem;
min-h-6min-height: 1.5rem;
min-h-7min-height: 1.75rem;
min-h-8min-height: 2rem;
min-h-9min-height: 2.25rem;
min-h-10min-height: 2.5rem;
min-h-11min-height: 2.75rem;
min-h-12min-height: 3rem;
min-h-13min-height: 3.25rem;
min-h-14min-height: 3.5rem;
min-h-15min-height: 3.75rem;
min-h-16min-height: 4rem;
min-h-18min-height: 4.5rem;
min-h-20min-height: 5rem;
min-h-24min-height: 6rem;
min-h-28min-height: 7rem;
min-h-32min-height: 8rem;
min-h-36min-height: 9rem;
min-h-40min-height: 10rem;
min-h-48min-height: 12rem;
min-h-56min-height: 14rem;
min-h-60min-height: 15rem;
min-h-64min-height: 16rem;
min-h-72min-height: 18rem;
min-h-80min-height: 20rem;
min-h-96min-height: 24rem;
min-h-fullmin-height: 100%;
min-h-screenmin-height: 100vh;
min-h-1/4min-height: 25%;
min-h-1/2min-height: 50%;
min-h-3/4min-height: 75%;
min-h-screen-25min-height: 25vh;
min-h-screen-50min-height: 50vh;
min-h-screen-75min-height: 75vh;

# Usage

Set the minimum height of an element using the min-h-0, min-h-full, or min-h-screen utilities.

.min-h-full
<div class="h-48 ...">
<div class="h-24 min-h-full ...">
min-h-full
</div>
</div>

# Responsive

To control the min-height of an element at a specific breakpoint, add a {screen}: prefix to any existing min-height utility.

<div class="h-48 ...">
<div class="h-24 min-h-0 **md:min-h-full** ...">
<!-- ... -->
</div>
</div>

For more information about Elements’ responsive design features, check out the Responsive Design documentation.