Tailwind CSS min-w-full Class
The min-w-full utility class generates the following CSS when applied to an element.
CSS Output
.min-w-full {
min-width: 100%;
}Variants
Use these variant prefixes to apply min-w-full conditionally:
Use It
<div class="overflow-x-auto">
<table class="min-w-full">
<tr><td>Cell</td><td>Cell</td><td>Cell</td></tr>
</table>
</div>Understanding min-w-full
The Tailwind CSS min-w-full utility applies min-width: 100%; to an element when added to its class attribute. It ensures the element is at least as wide as its parent container. Useful for tables or content that should never be narrower than the container.
This utility is part of Tailwind's Sizing module, designed for defining width, height, and min/max constraints that control how elements occupy space. In Tailwind's utility-first workflow, you add min-w-full directly to your HTML elements rather than writing custom CSS. This approach accelerates development and keeps styles co-located with your markup, making it easy to see exactly how each element is styled at a glance.
Common responsive variants include sm:min-w-full, md:min-w-full, lg:min-w-full, and xl:min-w-full, allowing different behavior at each breakpoint. State variants like hover:min-w-full and focus:min-w-full enable interactive styling without any JavaScript. You can also combine multiple variants for fine-grained control over when the utility applies.
This class works well alongside `min-w-0`, `w-full`, `max-w-full` to build complete, production-ready interfaces. Tailwind's tree-shaking ensures only utilities you actually use appear in your final CSS bundle, keeping file sizes minimal. Browser support for the underlying CSS is excellent across Chrome, Firefox, Safari, and Edge.
Related Classes
Explore More Tailwind Classes
Browse our complete reference of 321 Tailwind CSS utility classes with CSS output, variants, and examples.