Skip to main content

Overview

Min-height utilities set a floor while still allowing content to grow past that baseline.

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.

Using a percentage

Use fractional min-height utilities when an element should keep a minimum share of the parent’s height.

Matching the parent height floor

Use minimum-height-full when a child should always stay at least as tall as the parent that contains it.

Matching the viewport floor

Use minimum-height-screen when a section should always reach the viewport height, even if its content is short.

Resetting the minimum height

Use minimum-height-auto when you want the browser to calculate the baseline height automatically again.

Best Practices

  • Use minimum-height-<size> when a surface needs a reliable baseline height but should still grow with content.
  • Use minimum-height-full only when a parent already establishes height.
  • Use minimum-height-screen for page shells, hero sections, and empty states.
  • Use minimum-height-auto when you need to remove a previous minimum-height rule.

Height

Fixed and viewport height helpers

Max Height

Pair minimum and maximum height constraints