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-0
order: 0;
or-1
order: 1;
or-2
order: 2;
or-3
order: 3;
or-4
order: 4;
or-5
order: 5;
or-6
order: 6;
or-7
order: 7;
or-8
order: 8;
or-9
order: 9;
or-10
order: 10;
or-l
order: -9999;
or-f
order: 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)
Small640px
md:or-(value)
Medium768px
lg:or-(value)
Large1024px
xxl:or-(value)
Extra Large1536px

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)