Skip to main content

Float

Utilities for controlling the wrapping of content around an element.

CSS Property:float
Classes:5

Float Classes

ClassCSS
float-startfloat: inline-start;
float-endfloat: inline-end;
float-rightfloat: right;
float-leftfloat: left;
float-nonefloat: none;

Arbitrary Values

You can use arbitrary values with square bracket notation when you need a specific value not included in the default scale.

float-[inline-end]

Responsive Variants

Apply float utilities at specific breakpoints using responsive prefixes.

BreakpointPrefixExample
640px+sm:sm:float-start
768px+md:md:float-start
1024px+lg:lg:float-start
1280px+xl:xl:float-start
1536px+2xl:2xl:float-start

Related Utilities