Float and clear

Float

Use float helper classes to float an element on your page.

  • .float-left or .float-{sm,md,lg,xl}-left
  • .float-right or .float-{sm,md,lg,xl}-right
  • .float-none or .float-{sm,md,lg,xl}-none
.float-left    Float left on all viewport sizes
.float-right    Float right on all viewport sizes
.float-none    Don't float on all viewport sizes


.float-sm-left    Float left on viewports sized SM (small) or wider

.float-md-left    Float right on viewports sized MD (medium) or wider

.float-lg-left    Float left on viewports sized LG (large) or wider

.float-xl-left    Float right on viewports sized XL (extra-large) or wider

Clear

Helper classes for controlling the wrapping of content around an element.

  • .clear-left
  • .clear-right
  • .clear-none
  • .clear or .clearfix
				
<!-- Float -->
<div class="float-left">Float left on all viewport sizes</div><br>
<div class="float-right">Float right on all viewport sizes</div><br>
<div class="float-none">Don't float on all viewport sizes</div>

<div class="float-sm-left">Float left on viewports sized SM or wider</div>
<div class="float-md-left">Float left on viewports sized MD or wider</div>
<div class="float-lg-left">Float left on viewports sized LG or wider</div>
<div class="float-xl-left">Float left on viewports sized XL or wider</div>

<!-- Clear -->
<div class="clear"> ... </div>