CSS order Property


The order CSS property specifies the order in which a flex items are displayed and laid out within a flex container. Elements are laid out by ascending order of the order value. Elements with the same order value are laid out in the order they appear in the source code.

This property is used to specify the order of each flexible item in relation to other items inside the flexible container. It only gives the position to the items present in the container and categorized into a different order as desired by the user. If the element is not the flexible item then this property does not exist anymore.

Note: If the element is not a flexible item, the order property has no effect.

CSS Syntax

order: number|initial|inherit;

Supported Browsers: The browser supported by property are listed below:

  • Chrome
  • Android
  • Firefox (Gecko)
  • Firefox Mobile (Gecko)
  • Internet Explorer (IE)
  • IE Phone
  • Opera
  • Opera Mobile
  • Safari (WebKit)
  • Safari Mobile

Example -