Skip to main content

Float

Floats are old but still the easiest way to let text wrap around an image. FlatifyCSS has three tiny helper classes for them:

ClassCSS
.float-leftfloat: left
.float-rightfloat: right
.float-nonefloat: none
index.html
<img class="float-left" src="cat.jpg" alt="A sleepy cat" width="150" />
<p>The cat sleeps on the left, the text goes around it...</p>
Right to left pages

These classes use physical left and right, so they do not flip on right to left pages. If you need that, use float: inline-start or float: inline-end in your own CSS, read more on the right to left page.

For layout, like placing items side by side, flex helper classes are a better choice.