liveBook · Manning

Order

As explained in Web Design Playground, Second Edition

The CSS order property specifies the ordering position of a flex item within its flex container.

`order` is a CSS property for choosing a flex item’s ordering position inside its flex container. Think of it as a tiny “line up over here” instruction for one item, without changing the container’s other layout choices. section 12.4 section 12.7

Use it on the flex item you want to reposition. The property takes a value, and different values produce different item orders. section 12.4

item {
    order: value;
}

The basic declaration places an `order` value on an item. section 12.4

See the order change

Compare flex items with different `order` values to see how their displayed positions change within the same container. section 12.4

REMEMBER

  • `order` changes an item’s position among flex items. section 12.7
  • It is one of several item-level Flexbox controls, alongside sizing and individual alignment. section 12.4

How Web Design Playground, Second Edition covers it

How deep it goes
Introduces declaration syntax and illustrates the visual effect of differing order values.
Examples
Illustrates different order values with a visual comparison of flex items.
What it assumes
Assumes a flex container and its flex items are already in use.
What you can do after
Apply it via CSS to change a flex item’s ordering position.
How it connects
Connects item ordering with flex-grow, flex-shrink, flex-basis, and align-self.

Also explained in

Compare how 2 books explain order →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Web Design Playground, Second Edition. The section links point to the parts of the book it draws on.