order
Controls the order of the flex items. By default, all have order: 0. Items with a smaller value will appear first.
- An item with order: -1 will appear before one with order: 0.
- An item with order: 1 will appear after those with order: 0.
Example
Items are placed from lowest to highest order value and, with the same value, they follow the HTML order. Change the order of the child with the item class to move it before or after its siblings.
ResultLive
html
css