Max Width

Defines the maximum width of an element.

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