Float
Set how an element floats within its container.
Widely available
This feature is well established and works across many devices and browser versions.
Chrome
Edge
Firefox
Safari
Usage
None
Prevent the element from floating.
A
<div class="h-14 p-r c-white"> <div class="ai-c bg-indigo d-f d-14 fl-none jc-c">A</div></div>Inline End
Float the element to the end of the inline direction.
A
<div class="h-14 p-r c-white"> <div class="ai-c bg-indigo d-f d-14 fl-ie jc-c">A</div></div>Inline Start
Float the element to the start of the inline direction.
A
<div class="h-14 p-r c-white"> <div class="ai-c bg-indigo d-f d-14 fl-is jc-c">A</div></div>Left
Float the element to the left side of its container.
A
<div class="h-14 p-r c-white"> <div class="ai-c bg-indigo d-f d-14 fl-l jc-c">A</div></div>Right
Float the element to the right side of its container.
A
<div class="h-14 p-r c-white"> <div class="ai-c bg-indigo d-f d-14 fl-r jc-c">A</div></div>Responsive Design
Use breakpoint prefixes to target different screen sizes. Styles apply from the breakpoint & up.
Target viewport sizes with breakpoint prefixes.
sm:fl-[value]Small≥640px
md:fl-[value]Medium≥768px
lg:fl-[value]Large≥1024px
xxl:fl-[value]Extra Large≥1536px
Hover State
Apply styles conditionally on hover using the h: prefix.
Add the h: prefix to apply styles only when the user hovers over the element.
Syntax:
h:fl-[value]