⌘ K
esc

    Max Height

    Defines the maximum height of an element.

    Classes
    Class Properties
    max-h-0 max-height: 0px;
    max-h-full max-height: 100%;
    max-h-screen max-height: 100vh;
    Examples
    max-h-full
    
    <div class="card">
        <div class="flex flex-wrap align-items-center justify-content-center card-container blue-container">
            <div class="border-round bg-blue-100 w-12rem h-6rem p-3 m-3">
                <div class="h-30rem max-h-full border-round bg-blue-500 text-white font-bold p-3 flex align-items-center justify-content-center">max-h-full</div>
            </div>
        </div>
    </div>
    
    
    Responsive

    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.

    • 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="card">
        <div class="flex flex-wrap align-items-center justify-content-center card-container yellow-container">
            <div class="border-round bg-yellow-100 w-20rem h-10rem p-3 m-3">
                <div class="h-30rem max-h-0 md:max-h-full border-round bg-yellow-500 text-gray-900 font-bold p-3 flex align-items-center justify-content-center" >max-h-0 on small screen</div>
            </div>
        </div>
    </div>