Browse documentation
Reference / Sizing
Min height
Reserve a minimum height while letting a section expand when its content needs more room.
Working example
Drop proofs here.
Min-h-dvh follows changes in the visible mobile viewport. Min-h-svh uses the smaller viewport size for a steadier minimum.
<section class="grid min-h-24 place-items-center border p-3">
<p>Drop proofs here.</p>
</section>Class reference
| Class | CSS declarations |
|---|---|
min-h-0 | min-height: 0px; |
min-h-20 | min-height: 5rem; |
min-h-full | min-height: 100%; |
min-h-screen | min-height: 100vh; |
min-h-svh | min-height: 100svh; |
min-h-dvh | min-height: 100dvh; |
min-h-[6rem] | min-height: 6rem; |
View full generated CSS
.min-h-0 {
min-height: 0px;
}
.min-h-20 {
min-height: 5rem;
}
.min-h-\[6rem\] {
min-height: 6rem;
}
.min-h-dvh {
min-height: 100dvh;
}
.min-h-full {
min-height: 100%;
}
.min-h-screen {
min-height: 100vh;
}
.min-h-svh {
min-height: 100svh;
}