Min Width

Defines the minimum width of an element.

Classes
Class Properties
min-w-0 min-width: 0px;
min-w-full min-width: 100%;
min-w-screen min-width: 100vw;
min-w-min min-width: min-content;
min-w-max min-width: max-content;
Examples
min-w-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;">
        <div class="min-w-full bg-blue-100 text-blue-500 font-bold shadow-2 p-3 flex align-items-center justify-content-center">min-w-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:min-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
responsive min-width

<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: 250px;">
        <div class="min-w-min md:min-w-max  bg-blue-100 text-blue-500 font-bold shadow-2 p-3 flex align-items-center justify-content-center">responsive min-width</div>
    </div>
</div>