order

The order CSS property sets the order to lay out an item in a flex or grid container. Items in a container are sorted by ascending order value and then by their source code order.

Example

Initial value 0
Applies to Flex items, grid items, and absolutely-positioned flex and grid container children

Syntax

  
order: -1;
  

Values

Represents the ordinal group to be used by the item.

Browser support

order2912201112.19

We use cookies to improve your experience. Learn more in our Privacy policy.

×