.container {
...
display: flex;
flex-wrap: nowrap;
flex-direction: row;
justify-content: flex-start;
}
.block-1 { ... }
.block-2 { ... }
.block-3 { ... }
.block-4 { ... ; }
.block-5 { ... }
Override the align-items property for one or more children.
.block-1 { ... order: 1; }
.block-2 { ... order: 2; }
.block-3 { ... order: 0; }
.block-5 { ... order: 3; }
.block-4 { ... ; } // default is 0
Change the order of single elements, this property assigns the items to groups, and sor them in an ascending order.
.block-1 { ... ; }
.block-2 { ... ; }
.block-3 { ... ; }
.block-5 { ... ; }
// flex-grow default is 0
Allows an item to grow if there's enough space.
// flex-basis is set 100px
Allows an item to shrink.
Defines de thefault size of the children.