Use responsive sizing utility classes to quickly apply widths and heights on elements.
Sizing utility classes can be defined using the format -w-{breakpoint}--{value} for widths and
-h-{breakpoint}--{value} for heights.
Breakpoints supported are sm, md, lg, and xl.
Sizing utility classes with no breakpoint defined apply to all screen sizes.
Sizing Class  | Value  | 
|---|---|
-w--auto | width: auto; | 
-w--25 | width: 25%; | 
-w--50 | width: 50%; | 
-w--75 | width: 75%; | 
-w--100 | width: 100%; | 
To target a specific breakpoint, add the breakpoint abbreviation to the class.
Sizing Class  | Value  | 
|---|---|
-w-sm--auto | Visible only from sm | 
-w-sm--25 | Visible only from sm | 
-w-sm--50 | Visible only from sm | 
-w-sm--75 | Visible only from sm | 
-w-sm--100 | Visible only from sm | 
-w-md--auto | Visible only from md | 
-w-md--25 | Visible only from md | 
-w-md--50 | Visible only from md | 
-w-md--75 | Visible only from md | 
-w-md--100 | Visible only from md | 
-w-lg--auto | Visible only from lg | 
-w-lg--25 | Visible only from lg | 
-w-lg--50 | Visible only from lg | 
-w-lg--75 | Visible only from lg | 
-w-lg--100 | Visible only from lg | 
-w-xl--auto | Visible only from xl | 
-w-xl--25 | Visible only from xl | 
-w-xl--50 | Visible only from xl | 
-w-xl--75 | Visible only from xl | 
-w-xl--100 | Visible only from xl | 
<!-- width auto on all breakpoints -->
<div class="-w--auto"></div>
<!-- width 25% on all breakpoints -->
<div class="-w--25"></div>
<!-- width 50% on all breakpoints -->
<div class="-w--50"></div>
<!-- width 75% from md -->
<div class="-w-md--75"></div>
<!-- width 50% from xl -->
<div class="-w-xl--50"></div>
Sizing utility classes with no breakpoint defined apply to all screen sizes.
Sizing Class  | Value  | 
|---|---|
-h--auto | height: auto; | 
-h--25 | height: 25%; | 
-h--50 | height: 50%; | 
-h--75 | height: 75%; | 
-h--100 | height: 100%; | 
To target a specific breakpoint, add the breakpoint abbreviation to the class.
Sizing Class  | Value  | 
|---|---|
-h-sm--auto | Visible only from sm | 
-h-sm--25 | Visible only from sm | 
-h-sm--50 | Visible only from sm | 
-h-sm--75 | Visible only from sm | 
-h-sm--100 | Visible only from sm | 
-h-md--auto | Visible only from md | 
-h-md--25 | Visible only from md | 
-h-md--50 | Visible only from md | 
-h-md--75 | Visible only from md | 
-h-md--100 | Visible only from md | 
-h-lg--auto | Visible only from lg | 
-h-lg--25 | Visible only from lg | 
-h-lg--50 | Visible only from lg | 
-h-lg--75 | Visible only from lg | 
-h-lg--100 | Visible only from lg | 
-h-xl--auto | Visible only from xl | 
-h-xl--25 | Visible only from xl | 
-h-xl--50 | Visible only from xl | 
-h-xl--75 | Visible only from xl | 
-h-xl--100 | Visible only from xl | 
<!-- height auto on all breakpoints -->
<div class="-h--auto"></div>
<!-- height 25% on all breakpoints -->
<div class="-h--25"></div>
<!-- height 50% on all breakpoints -->
<div class="-h--50"></div>
<!-- height 75% from md -->
<div class="-h-md--75"></div>
<!-- height 50% from xl -->
<div class="-h-xl--50"></div>
<!-- height 25% from lg -->
<div class="-h-lg--25"></div>
Using the format -mw--{value} for max-width and -mh--{value} for max-height
Sizing Class  | Value  | 
|---|---|
-mw--100 | max-width: 100%; | 
-mw--480 | max-width: 480px; | 
-mw--640 | max-width: 640px; | 
-mw--960 | max-width: 960px; | 
-mw--980 | max-width: 980px; | 
-mh--100 | max-height: 100%; |