Overview
Use width utilities to control the horizontal size of elements. These utilities work with percentages, auto values, and fractional widths to create flexible, responsive layouts.Width Utilities
Width Properties
.w-full | 100% | width: 100%; | Full width |
.w-auto | Auto | width: auto; | Auto width |
.w-1-2 | 50% | width: 50%; | Half width |
.w-1-3 | 33.333% | width: 33.333%; | One third |
.w-2-3 | 66.666% | width: 66.666%; | Two thirds |
.w-1-4 | 25% | width: 25%; | Quarter width |
.w-3-4 | 75% | width: 75%; | Three quarters |
Full Width
Use.w-full to make an element take up 100% of its container’s width.
Common Use Cases
- Full-width sections
- Form inputs
- Container elements
- Hero sections
Auto Width
Use.w-auto to let the browser calculate the width based on the element’s content.
Common Use Cases
- Buttons with dynamic text
- Inline elements
- Elements that should size to content
- Navigation items
Fractional Widths
Use fractional width utilities to create column-based layouts. These utilities use percentage values that work perfectly with flexbox and grid layouts.Half Width (50%)
One Third (33.333%)
Two Thirds (66.666%)
Quarter Width (25%)
Three Quarters (75%)
Width Examples
Two-Column Layout
Three-Column Grid
Sidebar Layout
Full-Width Form
Best Practices
1
Use with Flexbox
Combine width utilities with flexbox (
.flex) for responsive column layouts.2
Use Full Width for Forms
Use
.w-full for form inputs and textareas to ensure consistent sizing.3
Combine with Max Width
Use width utilities with max-width utilities to create centered, constrained layouts.
4
Consider Responsive Design
Use fractional widths with flex-wrap for responsive layouts that stack on mobile.

