Height

Defines the height of an element.

ClassProperties
h-fullheight: 100%;
h-screenheight: 100vh;
h-autoheight: auto;
h-1remheight: 1rem;
h-2remheight: 2rem;
h-3remheight: 3rem;
h-4remheight: 4rem;
h-5remheight: 5rem;
h-6remheight: 6rem;
h-7remheight: 7rem;
h-8remheight: 8rem;
h-9remheight: 9rem;
h-10remheight: 10rem;
h-11remheight: 11rem;
h-12remheight: 12rem;
h-13remheight: 13rem;
h-14remheight: 14rem;
h-15remheight: 15rem;
h-16remheight: 16rem;
h-17remheight: 17rem;
h-18remheight: 18rem;
h-19remheight: 19rem;
h-20remheight: 20rem;
h-21remheight: 21rem;
h-22remheight: 22rem;
h-23remheight: 23rem;
h-24remheight: 24rem;
h-25remheight: 25rem;
h-26remheight: 26rem;
h-27remheight: 27rem;
h-28remheight: 28rem;
h-29remheight: 29rem;
h-30remheight: 30rem;
h-full
h-auto
<div class="flex flex-wrap align-items-center justify-content-center">
    <div class="border-round bg-primary-100 w-12rem h-6rem p-3 m-3">
        <div class="h-full border-round bg-primary font-bold p-3 flex align-items-center justify-content-center">h-full</div>
    </div>
    <div class="border-round bg-primary-100 w-12rem h-6rem p-3 m-3">
        <div class="h-auto border-round bg-primary font-bold p-3 flex align-items-center justify-content-center">h-auto</div>
    </div>
</div>
 

Various fixed height options are built-in based on rem units.

h-6rem
h-11rem
h-20rem
h-24rem
<div class="flex flex-row flex-wrap align-items-center justify-content-center">
    <div class="h-6rem border-round bg-primary font-bold p-3 m-3 flex align-items-center justify-content-center">h-6rem</div>
    <div class="h-11rem border-round bg-primary font-bold p-3 m-3 flex align-items-center justify-content-center">h-11rem</div>
    <div class="h-20rem border-round bg-primary font-bold p-3 m-3 flex align-items-center justify-content-center">h-20rem</div>
    <div class="h-24rem border-round bg-primary font-bold p-3 m-3 flex align-items-center justify-content-center">h-24rem</div>
</div>
 

Responsive alternatives are available for customizations based on screen size. Add the responsive breakpoint keyword followed by a semi-colon as a prefix such as md:h-full to use a responsive class.

ClassDescription
sm:small screens e.g. phones
md:medium screens e.g. tablets
lg:large screens e.g. notebooks
xl:larger screens e.g monitors
h-full on small screen
<div class="flex flex-wrap align-items-center justify-content-center">
    <div class="border-round bg-primary-100 w-16rem h-8rem p-3 m-3">
        <div class="h-full md:h-auto border-round bg-primary font-bold p-3 flex align-items-center justify-content-center">h-full on small screen</div>
    </div>
</div>