The .min-h
class is flagged as a value-driven selector.
The variable --min-h is required.
<element class="min-h" style="--min-h: /* value */;" />
Responsive
Prefix
.min-h
utility with a breakpoint variant (e.g., md:) to apply styles at
specific screen sizes (Supported breakpoints are
xm through 2xl).
<element class="md:min-h" style="--md-min-h: /* value */;" />
States
States are generated dynamically at runtime and always
come last. Append a state like :hover or
:focus to the end of the
class. This works in conjunction with breakpoints
.
The ::before and ::after utility classes
are supported too. Granted that you add the mandatory content-before or content-after class in
order for them to work.
<element class="content-before min-h::before" style="--min-h-before: /* value */;" /><element class="content-after min-h::after" style="--min-h-after: /* value */;" />
Shorthand
Value-driven classes support a shorthand syntax like bg=pink or p=4. The runtime
processes this for you. Unlike :hover that is
generating CSS on the fly, shorthand only splits it
and appends the corresponding style.
This feature may cause CLS (Cumulative Layout
Shift). Make sure to include a
z-not-ready
class in your <head>
tag.
.min-h
Sets min-height via --min-h.
[min-h]
Enforces a minimum height using raw --min-h.
CSS Rules
.\[min-h\] { min-height: var(--min-h);}
Usage
The .[min-h]
class is flagged as a value-driven selector.
The variable --min-h is required.
<element class="[min-h]" style="--min-h: /* value */;" />
Responsive
Prefix
.[min-h]
utility with a breakpoint variant (e.g., md:) to apply styles at
specific screen sizes (Supported breakpoints are
xm through 2xl).
<element class="md:[min-h]" style="--md-min-h: /* value */;" />
States
States are generated dynamically at runtime and always
come last. Append a state like :hover or
:focus to the end of the
class. This works in conjunction with breakpoints
.
The ::before and ::after utility classes
are supported too. Granted that you add the mandatory content-before or content-after class in
order for them to work.
<element class="content-before [min-h]::before" style="--min-h-before: /* value */;" /><element class="content-after [min-h]::after" style="--min-h-after: /* value */;" />
Shorthand
Value-driven classes support a shorthand syntax like bg=pink or p=4. The runtime
processes this for you. Unlike :hover that is
generating CSS on the fly, shorthand only splits it
and appends the corresponding style.
This feature may cause CLS (Cumulative Layout
Shift). Make sure to include a
z-not-ready
class in your <head>
tag.
.[min-h]
Enforces a minimum height using raw --min-h.
min-h-auto
Sets the minimum height to auto.
CSS Rules
.min-h-auto { min-height: auto;}
Usage
<element class="min-h-auto" />
Responsive
Prefix
.min-h-auto
utility with a breakpoint variant (e.g., md:) to apply styles at
specific screen sizes (Supported breakpoints are
xm through 2xl).
<element class="md:min-h-auto" />
States
States are generated dynamically at runtime and always
come last. Append a state like :hover or
:focus to the end of the
class. This works in conjunction with breakpoints
.
The ::before and ::after utility classes
are supported too. Granted that you add the mandatory content-before or content-after class in
order for them to work.
Sets the minimum height to 100% of the parent container.
CSS Rules
.min-h-full { min-height: 100%;}
Usage
<element class="min-h-full" />
Responsive
Prefix
.min-h-full
utility with a breakpoint variant (e.g., md:) to apply styles at
specific screen sizes (Supported breakpoints are
xm through 2xl).
<element class="md:min-h-full" />
States
States are generated dynamically at runtime and always
come last. Append a state like :hover or
:focus to the end of the
class. This works in conjunction with breakpoints
.
The ::before and ::after utility classes
are supported too. Granted that you add the mandatory content-before or content-after class in
order for them to work.
Sets the minimum height to 100% of the parent container.
min-h-screen
Sets min-height: 100vh.
CSS Rules
.min-h-screen { min-height: 100vh;}
Usage
<element class="min-h-screen" />
Responsive
Prefix
.min-h-screen
utility with a breakpoint variant (e.g., md:) to apply styles at
specific screen sizes (Supported breakpoints are
xm through 2xl).
<element class="md:min-h-screen" />
States
States are generated dynamically at runtime and always
come last. Append a state like :hover or
:focus to the end of the
class. This works in conjunction with breakpoints
.
The ::before and ::after utility classes
are supported too. Granted that you add the mandatory content-before or content-after class in
order for them to work.
Sets the minimum height to 100 dynamic viewport heights.
CSS Rules
.min-h-dvh { min-height: 100dvh;}
Usage
<element class="min-h-dvh" />
Responsive
Prefix
.min-h-dvh
utility with a breakpoint variant (e.g., md:) to apply styles at
specific screen sizes (Supported breakpoints are
xm through 2xl).
<element class="md:min-h-dvh" />
States
States are generated dynamically at runtime and always
come last. Append a state like :hover or
:focus to the end of the
class. This works in conjunction with breakpoints
.
The ::before and ::after utility classes
are supported too. Granted that you add the mandatory content-before or content-after class in
order for them to work.
Sets the minimum height to 100 dynamic viewport heights.
min-h-dvw
Sets the minimum height to 100 dynamic viewport widths.
CSS Rules
.min-h-dvw { min-height: 100dvw;}
Usage
<element class="min-h-dvw" />
Responsive
Prefix
.min-h-dvw
utility with a breakpoint variant (e.g., md:) to apply styles at
specific screen sizes (Supported breakpoints are
xm through 2xl).
<element class="md:min-h-dvw" />
States
States are generated dynamically at runtime and always
come last. Append a state like :hover or
:focus to the end of the
class. This works in conjunction with breakpoints
.
The ::before and ::after utility classes
are supported too. Granted that you add the mandatory content-before or content-after class in
order for them to work.
Sets the minimum height to 100 dynamic viewport widths.
min-h-lvh
Sets the minimum height to 100 large viewport heights.
CSS Rules
.min-h-lvh { min-height: 100lvh;}
Usage
<element class="min-h-lvh" />
Responsive
Prefix
.min-h-lvh
utility with a breakpoint variant (e.g., md:) to apply styles at
specific screen sizes (Supported breakpoints are
xm through 2xl).
<element class="md:min-h-lvh" />
States
States are generated dynamically at runtime and always
come last. Append a state like :hover or
:focus to the end of the
class. This works in conjunction with breakpoints
.
The ::before and ::after utility classes
are supported too. Granted that you add the mandatory content-before or content-after class in
order for them to work.
Sets the minimum height to 100 large viewport heights.
min-h-lvw
Sets the minimum height to 100 large viewport widths.
CSS Rules
.min-h-lvw { min-height: 100lvw;}
Usage
<element class="min-h-lvw" />
Responsive
Prefix
.min-h-lvw
utility with a breakpoint variant (e.g., md:) to apply styles at
specific screen sizes (Supported breakpoints are
xm through 2xl).
<element class="md:min-h-lvw" />
States
States are generated dynamically at runtime and always
come last. Append a state like :hover or
:focus to the end of the
class. This works in conjunction with breakpoints
.
The ::before and ::after utility classes
are supported too. Granted that you add the mandatory content-before or content-after class in
order for them to work.
Sets the minimum height to 100 large viewport widths.
min-h-svh
Sets the minimum height to 100 small viewport heights.
CSS Rules
.min-h-svh { min-height: 100svh;}
Usage
<element class="min-h-svh" />
Responsive
Prefix
.min-h-svh
utility with a breakpoint variant (e.g., md:) to apply styles at
specific screen sizes (Supported breakpoints are
xm through 2xl).
<element class="md:min-h-svh" />
States
States are generated dynamically at runtime and always
come last. Append a state like :hover or
:focus to the end of the
class. This works in conjunction with breakpoints
.
The ::before and ::after utility classes
are supported too. Granted that you add the mandatory content-before or content-after class in
order for them to work.
Sets the minimum height to 100 small viewport heights.
min-h-svw
Sets the minimum height to 100 small viewport widths.
CSS Rules
.min-h-svw { min-height: 100svw;}
Usage
<element class="min-h-svw" />
Responsive
Prefix
.min-h-svw
utility with a breakpoint variant (e.g., md:) to apply styles at
specific screen sizes (Supported breakpoints are
xm through 2xl).
<element class="md:min-h-svw" />
States
States are generated dynamically at runtime and always
come last. Append a state like :hover or
:focus to the end of the
class. This works in conjunction with breakpoints
.
The ::before and ::after utility classes
are supported too. Granted that you add the mandatory content-before or content-after class in
order for them to work.
Sets the minimum height to 100 small viewport widths.
min-h-min
Sets the minimum height to the intrinsic minimum height of the content.
CSS Rules
.min-h-min { min-height: min-content;}
Usage
<element class="min-h-min" />
Responsive
Prefix
.min-h-min
utility with a breakpoint variant (e.g., md:) to apply styles at
specific screen sizes (Supported breakpoints are
xm through 2xl).
<element class="md:min-h-min" />
States
States are generated dynamically at runtime and always
come last. Append a state like :hover or
:focus to the end of the
class. This works in conjunction with breakpoints
.
The ::before and ::after utility classes
are supported too. Granted that you add the mandatory content-before or content-after class in
order for them to work.
Sets the minimum height to the intrinsic minimum height of the content.
min-h-max
Sets the minimum height to the intrinsic maximum height of the content.
CSS Rules
.min-h-max { min-height: max-content;}
Usage
<element class="min-h-max" />
Responsive
Prefix
.min-h-max
utility with a breakpoint variant (e.g., md:) to apply styles at
specific screen sizes (Supported breakpoints are
xm through 2xl).
<element class="md:min-h-max" />
States
States are generated dynamically at runtime and always
come last. Append a state like :hover or
:focus to the end of the
class. This works in conjunction with breakpoints
.
The ::before and ::after utility classes
are supported too. Granted that you add the mandatory content-before or content-after class in
order for them to work.
Sets the minimum height to the intrinsic maximum height of the content.
min-h-fit
Sets the minimum height to fit the element's content.
CSS Rules
.min-h-fit { min-height: fit-content;}
Usage
<element class="min-h-fit" />
Responsive
Prefix
.min-h-fit
utility with a breakpoint variant (e.g., md:) to apply styles at
specific screen sizes (Supported breakpoints are
xm through 2xl).
<element class="md:min-h-fit" />
States
States are generated dynamically at runtime and always
come last. Append a state like :hover or
:focus to the end of the
class. This works in conjunction with breakpoints
.
The ::before and ::after utility classes
are supported too. Granted that you add the mandatory content-before or content-after class in
order for them to work.
Sets the minimum height to fit the element's content.
min-h-lh
Sets the minimum height to exactly 1 line height.
CSS Rules
.min-h-lh { min-height: 1lh;}
Usage
<element class="min-h-lh" />
Responsive
Prefix
.min-h-lh
utility with a breakpoint variant (e.g., md:) to apply styles at
specific screen sizes (Supported breakpoints are
xm through 2xl).
<element class="md:min-h-lh" />
States
States are generated dynamically at runtime and always
come last. Append a state like :hover or
:focus to the end of the
class. This works in conjunction with breakpoints
.
The ::before and ::after utility classes
are supported too. Granted that you add the mandatory content-before or content-after class in
order for them to work.