{"id":21205,"date":"2013-04-19T08:44:38","date_gmt":"2013-04-19T15:44:38","guid":{"rendered":"http:\/\/css-tricks.com\/?page_id=21205"},"modified":"2021-08-04T08:38:51","modified_gmt":"2021-08-04T15:38:51","slug":"order","status":"publish","type":"page","link":"https:\/\/css-tricks.com\/almanac\/properties\/o\/order\/","title":{"rendered":"order"},"content":{"rendered":"\n

The order<\/code> property is a sub-property of the Flexible Box Layout module<\/a>.Flex items are displayed in the same order as they appear in the source document by default. The order<\/code> property can be used to change this ordering.<\/p>\n\n\n\n

.elememt {\n  order: 3;\n}<\/code><\/pre>\n\n\n

Syntax<\/h3>\n\n\n
order: <number><\/code><\/pre>\n\n\n

Demo<\/h3>\n\n\n

The following demo shows how the default order (1, 2, 3, 4, 5) has been altered by setting the order property to each item.<\/p>\n\n\n\n