Skip to main content

Height

Utilities for setting the height of an element.

CSS Property:height
Classes:44

Height Classes

ClassCSS
h-0height: 0;
h-pxheight: 1px;
h-0.5height: 0.125rem;
h-1height: 0.25rem;
h-2height: 0.5rem;
h-3height: 0.75rem;
h-4height: 1rem;
h-5height: 1.25rem;
h-6height: 1.5rem;
h-8height: 2rem;
h-10height: 2.5rem;
h-12height: 3rem;
h-16height: 4rem;
h-20height: 5rem;
h-24height: 6rem;
h-32height: 8rem;
h-40height: 10rem;
h-48height: 12rem;
h-56height: 14rem;
h-64height: 16rem;
h-72height: 18rem;
h-80height: 20rem;
h-96height: 24rem;
h-autoheight: auto;
h-1/2height: 50%;
h-1/3height: 33.333333%;
h-2/3height: 66.666667%;
h-1/4height: 25%;
h-2/4height: 50%;
h-3/4height: 75%;
h-1/5height: 20%;
h-2/5height: 40%;
h-3/5height: 60%;
h-4/5height: 80%;
h-1/6height: 16.666667%;
h-5/6height: 83.333333%;
h-fullheight: 100%;
h-screenheight: 100vh;
h-svhheight: 100svh;
h-lvhheight: 100lvh;
h-dvhheight: 100dvh;
h-minheight: min-content;
h-maxheight: max-content;
h-fitheight: fit-content;

Arbitrary Values

You can use arbitrary values with square bracket notation when you need a specific value not included in the default scale.

[height:value]

Responsive Variants

Apply height utilities at specific breakpoints using responsive prefixes.

BreakpointPrefixExample
640px+sm:sm:h-0
768px+md:md:h-0
1024px+lg:lg:h-0
1280px+xl:xl:h-0
1536px+2xl:2xl:h-0