January 17, 2021
•Last updated November 5, 2023
Intro to CSS Flexbox - Order
Order is a neat way to define more exact ordering of how child elements of a flex container display.
To assign order you use the order: CSS property on a given flex item. Doing this on one item if there are multiple with throw things out of wack a bit because you need to define order for all child flex items for this to behave properly. 
Order is only respected if a container is of course displaying flex.
.flex-item {
  order: 3; /* default is 0 */
}
CodePen
See the Pen flexbox - order by Andy Leverenz (@webcrunchblog) on CodePen.
Categories
Collection
Part of the CSS Flexbox collection
Products and courses
- 
        Hello Hotwire
        
A course on Hotwire + Ruby on Rails.
 - 
        Hello Rails
        
A course for newcomers to Ruby on Rails.
 - 
        Rails UI
        
UI templates and components for Rails.