Overview
Control the width, height, and size constraints of elements using our sizing utilities. These utilities work with percentages, viewport units, and fixed pixel values to create responsive layouts.Width
Control element width with
.w-full, .w-1-2, .w-1-3, and moreHeight
Control element height with
.h-full, .h-screen, .min-h-screen, and moreMax Width
Constrain maximum width with static and fluid utilities
Quick Start
Basic Sizing
Sizing Utilities Reference
Width Utilities
- Full:
.w-full(100%) - Auto:
.w-auto - Fractions:
.w-1-2,.w-1-3,.w-2-3,.w-1-4,.w-3-4
Height Utilities
- Full:
.h-full(100%) - Auto:
.h-auto - Screen:
.h-screen(100vh)
Min Height Utilities
- Screen:
.min-h-screen(100vh) - Full:
.min-h-full(100%)
Max Width Utilities
- Static:
.max-w-sm,.max-w-md,.max-w-lg,.max-w-xl,.max-w-2xl - Fluid:
.max-w-fluid-sm,.max-w-fluid-md,.max-w-fluid-lg,.max-w-fluid-xl,.max-w-fluid-2xl

