Overview
Min-height utilities set a floor while still allowing content to grow past that baseline.| Pattern | Supported values |
|---|---|
minimum-height-<size> | 3xs, 2xs, xs, sm, md, lg, xl, 2xl, 3xl, 4xl, 5xl, 6xl, 7xl |
minimum-height-<fraction> | 1-2, 1-3, 2-3, 1-4, 3-4 |
minimum-height-<value> | px, auto, full, screen |
Examples
Using the size scale
Use the t-shirt scale when a section or card needs a reliable minimum height before content starts growing it taller.| Pattern | Supported classes | What it controls |
|---|---|---|
minimum-height-<size> | minimum-height-3xs, minimum-height-2xs, minimum-height-xs, minimum-height-sm, minimum-height-md, minimum-height-lg, minimum-height-xl, minimum-height-2xl, minimum-height-3xl, minimum-height-4xl, minimum-height-5xl, minimum-height-6xl, minimum-height-7xl | Minimum heights based on the size ladder |
Using a percentage
Use fractional min-height utilities when an element should keep a minimum share of the parent’s height.| Pattern | Supported classes | What it controls |
|---|---|---|
minimum-height-<fraction> | minimum-height-1-2, minimum-height-1-3, minimum-height-2-3, minimum-height-1-4, minimum-height-3-4 | Minimum height as a percentage of the parent |
Matching the parent height floor
Useminimum-height-full when a child should always stay at least as tall as the parent that contains it.
| Pattern | Supported classes | What it controls |
|---|---|---|
minimum-height-full | minimum-height-full | Uses the full parent height as a minimum floor |
Matching the viewport floor
Useminimum-height-screen when a section should always reach the viewport height, even if its content is short.
| Pattern | Supported classes | What it controls |
|---|---|---|
minimum-height-screen | minimum-height-screen | Uses the viewport height as a minimum floor |
Resetting the minimum height
Useminimum-height-auto when you want the browser to calculate the baseline height automatically again.
| Pattern | Supported classes | What it controls |
|---|---|---|
minimum-height-auto | minimum-height-auto | Resets the minimum height to automatic browser sizing |
Best Practices
- Use
minimum-height-<size>when a surface needs a reliable baseline height but should still grow with content. - Use
minimum-height-fullonly when a parent already establishes height. - Use
minimum-height-screenfor page shells, hero sections, and empty states. - Use
minimum-height-autowhen you need to remove a previous minimum-height rule.
Related Utilities
Height
Fixed and viewport height helpers
Max Height
Pair minimum and maximum height constraints

