Float
Controls the content wrapping around an element
Class | Properties |
---|---|
flo-ie | float: inline-end; |
flo-is | float: inline-start; |
flo-l | float: left; |
flo-none | float: none; |
flo-r | float: right; |
Inline End
This example sets the float property to inline-end. The element will float to the end of the inline direction, which is typically the right side in left-to-right languages.
<div class="h-14 p-r stripes"> <div class="ai-c bg-indigo d-f dim-14 flo-ie jc-c rad-1 tc-white">A</div></div>
Inline Start
This example sets the float property to inline-start. The element will float to the start of the inline direction, which is typically the left side in left-to-right languages.
<div class="h-14 p-r stripes"> <div class="ai-c bg-indigo d-f dim-14 flo-is jc-c rad-1 tc-white">A</div></div>
Left
This example sets the float property to left. The element will float to the left side of its container, allowing text and inline elements to wrap around it.
<div class="h-14 p-r stripes"> <div class="ai-c bg-indigo d-f dim-14 flo-l jc-c rad-1 tc-white">A</div></div>
None
This example sets the float property to none. The element will not float, and it will be displayed in the normal flow of the document.
<div class="h-14 p-r stripes"> <div class="ai-c bg-indigo d-f dim-14 flo-none jc-c rad-1 tc-white">A</div></div>
Right
This example sets the float property to right. The element will float to the right side of its container, allowing text and inline elements to wrap around it.
<div class="h-14 p-r stripes"> <div class="ai-c bg-indigo d-f dim-14 flo-r jc-c rad-1 tc-white">A</div></div>
Utilizing utilities conditionally
Override existing utilities based on the user's screen size or other factors, such as hover states. Learn more about modifiers in our documentation.
Responsive breakpoints
You can combine responsive breakpoints like sm:flo-*
,md:flo-*
, lg:flo-*
, and xxl:flo-*
allows targeting specific utilities in
different viewports.
<div class="flo-l md:flo-r ..."></div>
Utilizing utilities conditionally
Override existing utilities based on the user's screen size or other factors, such as hover states. Learn more about modifiers in our documentation.
Hover states
Alternatively, you can apply :hover
by using h:flo-*
utility to override elements
and change their values when hovering over them.
<div class="flo-l h:flo-r ..."></div>