Max Height

Defines the maximum height of an element.

ClassProperties
max-h-0max-height: 0px;
max-h-fullmax-height: 100%;
max-h-screenmax-height: 100vh;
max-h-1remmax-height: 1rem;
max-h-2remmax-height: 2rem;
max-h-3remmax-height: 3rem;
max-h-4remmax-height: 4rem;
max-h-5remmax-height: 5rem;
max-h-6remmax-height: 6rem;
max-h-7remmax-height: 7rem;
max-h-8remmax-height: 8rem;
max-h-9remmax-height: 9rem;
max-h-10remmax-height: 10rem;
max-h-11remmax-height: 11rem;
max-h-12remmax-height: 12rem;
max-h-13remmax-height: 13rem;
max-h-14remmax-height: 14rem;
max-h-15remmax-height: 15rem;
max-h-16remmax-height: 16rem;
max-h-17remmax-height: 17rem;
max-h-18remmax-height: 18rem;
max-h-19remmax-height: 19rem;
max-h-20remmax-height: 20rem;
max-h-21remmax-height: 21rem;
max-h-22remmax-height: 22rem;
max-h-23remmax-height: 23rem;
max-h-24remmax-height: 24rem;
max-h-25remmax-height: 25rem;
max-h-26remmax-height: 26rem;
max-h-27remmax-height: 27rem;
max-h-28remmax-height: 28rem;
max-h-29remmax-height: 29rem;
max-h-30remmax-height: 30rem;
max-h-full
<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-30rem max-h-full border-round bg-primary font-bold p-3 flex align-items-center justify-content-center">max-h-full</div>
    </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:max-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
max-h-0 on small screen
<div class="flex flex-wrap align-items-center justify-content-center">
    <div class="border-round bg-primary-100 w-20rem h-10rem p-3 m-3">
        <div class="h-30rem max-h-0 md:max-h-full border-round bg-primary font-bold p-3 flex align-items-center justify-content-center">max-h-0 on small screen</div>
    </div>
</div>