Min height

Utilities for setting the minimum height of an element.

In this article

Class Properties
.min-h-0 min-height: 0;
.min-h-full min-height: 100%;
.min-h-screen min-height: 100vh;

Usage

Use .min-h-0, .min-h-full, or .min-h-screen to set the minimum height of an element.

Variants

By default, no responsive or hover-state variants are generated for min height utilities.

Responsive

To include responsive variants like .md:min-h-full, add "min-height" to the $responsive-variants variable in your theme’s _variables.scss file when recompiling your CSS:

$responsive-variants: (
  // ...
  "min-height",
);

Hover-state

To include hover-state variants like .hover:min-h-full, add "min-height" to the $hover-variants variable when recompiling your CSS:

$hover-variants: (
  // ...
  "min-height",
);

Questions or feedback about this article? Let us know