Flex With Flexbox

The order property specifies the order of the flex items.

All the items have by default order 0

all items have order 0

Item 1
Item 2
Item 3
Item 4
Item 5

Item 2 has order 1 & item 4 has order -1

Item 1
Item 2
Item 3
Item 4
Item 5

Item 1 has order 1 & item 2 has order 2

Item 1
Item 2
Item 3
Item 4
Item 5