Order
Controls the order of flex and grid items.
Utility | Properties |
---|---|
Error: 429 |
This example showcases various order
utilities:
- The or-l order utility sets the order property to -9999, placing the item at the beginning of the flex container.
- The or-f order utility sets the order property to 9999, placing the item at the end of the flex container.
A
B
C
<div class="d-f jc-sb tc-white"> <div class="ai-c bg-indigo d-f d-14 jc-c or-f rad-1">A</div> <div class="ai-c bg-indigo d-f d-14 jc-c rad-1">B</div> <div class="ai-c bg-indigo d-f d-14 jc-c or-l rad-1">C</div></div>
Conditional styles
Learn how to override existing utilities based on the userโs screen size or other factors, such as hover states.
Media modifier
You can combine responsive breakpoints like sm:-*
,md:-*
, lg:-*
, and xxl:-*
allows targeting specific utilities in different viewports.
<div class="or-f md:or-l ..."></div>
Hover modifier
Alternatively, you can apply :hover
by using h:-*
utility to override elements and change their values when hovering over them.
<div class="or-f h:or-l ..."></div>