Order
Set the order for flex & grid items.
Widely available
This feature is well established and works across many devices and browser versions.
Chrome
Edge
Firefox
Safari
or-0order: 0;or-1order: 1;or-2order: 2;or-3order: 3;or-4order: 4;or-5order: 5;or-6order: 6;or-7order: 7;or-8order: 8;or-9order: 9;or-10order: 10;or-lorder: -9999;or-forder: 9999;Responsiveness
Use breakpoint prefixes to target different screen sizes. Styles apply from the breakpoint & up.
Target viewport sizes with breakpoint prefixes.
sm:or-(value)Small≥640px
md:or-(value)Medium≥768px
lg:or-(value)Large≥1024px
xxl:or-(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:or-(value)Negative Values
Use negative variants to apply negative order values.
Use the -- syntax to apply negative numeric values.
Syntax:
or--(value)