⌘ K
esc

    Max Width

    Defines the maximum width of an element.

    Classes
    Class Properties
    max-w-0 max-width: 0px;
    max-w-full max-width: 100%;
    max-w-screen max-width: 100vw;
    max-w-min max-width: min-content;
    max-w-max max-width: max-content;
    Examples
    max-w-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 p-3 m-3">
                <div class="max-w-full border-round bg-blue-500 text-white font-bold p-3 flex align-items-center justify-content-center">max-w-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-w-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
    Minimum Content on a Small Screen

    Resize to change width value.

    max-w-min 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 p-3 m-3">
                <div class="max-w-min md:max-w-max border-round bg-yellow-500 text-gray-900 font-bold p-3 flex align-items-center justify-content-center">max-w-min on small screen</div>
            </div>
        </div>
    </div>