Float

Use border utilities to quickly style the border and border-radius of an element. Great for images, buttons, or any other element.

Overview

These utility classes float an element to the left or right, or disable floating, based on the current viewport size using the CSS float property. !important is included to avoid specificity issues. These use the same viewport breakpoints as our grid system.


Classes

Toggle a float with a class:

Float left on all viewport sizes

Float right on all viewport sizes

Don't float on all viewport sizes
<div class="c-pull-left">Float left on all viewport sizes</div><br>
<div class="c-pull-right">Float right on all viewport sizes</div><br>
<div class="c-pull-none">Don't float on all viewport sizes</div>
HTML

Responsive

Responsive variations also exist for each float value.

Float left on viewports sized SM (small) or wider

Float left on viewports sized MD (medium) or wider

Float left on viewports sized LG (large) or wider

Float left on viewports sized XL (extra-large) or wider

<div class="c-sm-pull-left">Float left on viewports sized SM (small) or wider</div><br>
<div class="c-md-pull-left">Float left on viewports sized MD (medium) or wider</div><br>
<div class="c-lg-pull-left">Float left on viewports sized LG (large) or wider</div><br>
<div class="c-xl-pull-left">Float left on viewports sized XL (extra-large) or wider</div><br>
HTML

Here are all the support classes:

Min-Width: 0px Min-Width: 576px Min-Width: 768px Min-Width: 992px Min-Width: 1200px
.c-pull-left .c-sm-pull-left .c-md-pull-left .c-lg-pull-left .c-xl-pull-left
.c-pull-right .c-sm-pull-right .c-md-pull-right .c-lg-pull-right .c-xl-pull-right
.c-pull-none .c-sm-pull-none .c-md-pull-none .c-lg-pull-none .c-xl-pull-none