Gettıng started

Flexbox

Box Alignment

Spacing

Sizing

Border

Interaction

Helpers

Back to home

# Float and Clear

Float specifies how an element should float.
Clear specifies which element will float next to the cleaned element.
Class Property
float-left float: left;
float-right float: right;
float-none float: none;
clear-left clear: left;
clear-right clear: right;
clear-both clear: both;
clear-none clear: none;

# Float Usage

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus imperdiet, nulla et dictum interdum, nisi lorem egestas odio, vitae scelerisque enim ligula venenatis dolor. Maecenas nisl est, ultrices nec congue eget, auctor vitae massa. Fusce luctus vestibulum augue ut aliquet. Mauris ante ligula, facilisis sed ornare eu, lobortis in odio. Praesent convallis urna a lacus interdum ut hendrerit risus congue. Nunc sagittis dictum nisi, sed ullamcorper ipsum dignissim ac. In at libero sed nunc venenatis imperdiet sed ornare turpis. Donec vitae dui eget tellus gravida venenatis. Integer fringilla congue eros non fermentum. Sed dapibus pulvinar nibh tempor porta. Cras ac leo purus. Mauris quis diam velit.


Lorem ipsum


Float olmadan,

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus imperdiet, nulla et dictum interdum, nisi lorem egestas odio, vitae scelerisque enim ligula venenatis dolor.


Lorem ipsum

# Clear Usage

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus imperdiet, nulla et dictum interdum.

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus imperdiet, nulla et dictum interdum, nisi lorem egestas odio, vitae scelerisque enim ligula venenatis dolor.


  
  

Lorem ipsum

Lorem ipsum

# Responsive

You can set the float and clear properties for each screen size. It is enough to add (screen): to the beginning of the color class. Example md:text-blue-400 Learn more