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 flex flex-wrap align-items-center justify-content-center">
    <div class="bg-blue-50 shadow-1 p-3 m-3" style="width: 200px; height: 100px;">
        <div class="max-h-full bg-blue-100 text-blue-500 font-bold shadow-2 p-3 flex align-items-center justify-content-center">max-h-full</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 flex flex-wrap align-items-center justify-content-center">
    <div class="bg-blue-50 shadow-1 p-3 m-3" style="width: 220px; height: 150px;">
        <div class="max-h-0 md:max-h-full bg-blue-100 text-blue-500 font-bold shadow-2 p-3 flex align-items-center justify-content-center" >max-h-0 on small screen</div>
    </div>
</div>