Float and clear

Float

Use float utility 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
					
<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>
<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

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

  • .clear-left
  • .clear-right
  • .clear-none
  • .clear or .clearfix

.clear-left

test image
test image

Maybe we can live without libraries, people like you and me. Maybe. Sure, we're too old to change the world, but what about that kid, sitting down, opening a book, right now, in a branch at the local library and finding drawings of pee-pees and wee-wees on the Cat in the Hat and the Five Chinese Brothers? Doesn't HE deserve better? Look. If you think this is about overdue fines and missing books, you'd better think again. This is about that kid's right to read a book without getting his mind warped! Or: maybe that turns you on, Seinfeld; maybe that's how y'get your kicks. You and your good-time buddies.


.clear-right

test image
test image

Maybe we can live without libraries, people like you and me. Maybe. Sure, we're too old to change the world, but what about that kid, sitting down, opening a book, right now, in a branch at the local library and finding drawings of pee-pees and wee-wees on the Cat in the Hat and the Five Chinese Brothers? Doesn't HE deserve better? Look. If you think this is about overdue fines and missing books, you'd better think again. This is about that kid's right to read a book without getting his mind warped! Or: maybe that turns you on, Seinfeld; maybe that's how y'get your kicks. You and your good-time buddies.


.clear

test image
test image

Maybe we can live without libraries, people like you and me. Maybe. Sure, we're too old to change the world, but what about that kid, sitting down, opening a book, right now, in a branch at the local library and finding drawings of pee-pees and wee-wees on the Cat in the Hat and the Five Chinese Brothers? Doesn't HE deserve better? Look. If you think this is about overdue fines and missing books, you'd better think again. This is about that kid's right to read a book without getting his mind warped! Or: maybe that turns you on, Seinfeld; maybe that's how y'get your kicks. You and your good-time buddies.


.clear-none

test image
test image

Maybe we can live without libraries, people like you and me. Maybe. Sure, we're too old to change the world, but what about that kid, sitting down, opening a book, right now, in a branch at the local library and finding drawings of pee-pees and wee-wees on the Cat in the Hat and the Five Chinese Brothers? Doesn't HE deserve better? Look. If you think this is about overdue fines and missing books, you'd better think again. This is about that kid's right to read a book without getting his mind warped! Or: maybe that turns you on, Seinfeld; maybe that's how y'get your kicks. You and your good-time buddies.

					
<div class="clear-left"> ... </div>
<div class="clear-right"> ... </div>
<div class="clear"> ... </div>
<div class="clear-none"> ... </div>