Float
Toggle floats on any element, across any breakpoint, using our responsive float utilities.
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.
To change floating add one of classes:
.float-left
,
.float-right
,
.float-none
,
and synonyms:
.place-left
,
.place-right
,
.place-none
.
<div class="float-left">Float left on all viewport sizes</div>
<div class="float-right">Float right on all viewport sizes</div>
<div class="float-none">Don't float on all viewport sizes</div>
Responsive
All float utilities classes has media variants with breakpoints suffixes:
-sm
,
-md
,
-lg
,
-xl
,
-xxl
.
<div class="float-left-lg float-right-md">...</div>