Layout
Utilities for controlling the wrapping of content around an element.
Class | Styles |
---|---|
float-start | float: inline-start; |
float-end | float: inline-end; |
float-right | float: right; |
float-left | float: left; |
float-none | float: none; |
Use the float-right
utility to float an element to the right of its container.
Use the float-left
utility to float an element to the left of its container.
Use the float-none
utility to reset any floats that are applied to an element. This is the default value for the float property.
Use the float-start
or float-end
utilities, which use logical properties to map to either the left or right side based on the text direction.
Prefix a float
utility with a breakpoint variant like md:
to only apply the utility at medium screen sizes and above:
<div class="float-right md:float-none"> <!-- ... --></div>
Learn more about using variants in the variants documentation.