Tailwind CSS Classes

Tailwind CSS class .float-*

<div class="p-4">
  <img class="float-left mr-4 my-2 h-24" src="https://tailwind.build/placeholders/pictures/office.jpg">
  <p class="clearfix">Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p>
  <img class="float-right mr-4 my-2 h-24" src="https://tailwind.build/placeholders/pictures/office.jpg">
  <p class="clearfix">Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p>
  <img class="float-none mr-4 my-2 h-24" src="https://tailwind.build/placeholders/pictures/office.jpg">
  <p class="clearfix">Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p>
</div>

Preview

Are you tired of writing HTML by hand?

CSS source

.float-left { float: left; }
.float-right { float: right; }
.float-none { float: none; }

More Tailwind CSS classes in Positioning category

© 2024 Shuffle. All rights reserved.