CSS Flexible Box Layout Module Level 1
Flexbox is not a single property but a set of properties on the parent element and their children
.grid {
display: flex; //inline-flex
}
.grid {
...
flex-direction: row; //column, row-reverse, column-reverse
flex-wrap: nowrap; // wrap
...
}
.grid_item {
order: 1;
}
.grid {
...
justify-content: flex-start; // flex-end, center, space-around, space-between
align-items: flex-start; // flex-end, center, base-line, stretch
...
}
.grid_item {
align-self: flex-start; // flex-end, center. base-line, stretch
}
.grid_item {
...
flex-grow: 0; // >= 0 are valid
flex-shrink: 0;
flex-basis: auto; // 30%, 50%
...
}
.grid_item {
...
flex: none | [ <'flex-grow'> <'flex-shrink'>? || <'flex-basis'> ];
flex: 2;
flex: 10px;
flex: 2 2;
flex: 2 30px;
flex: 2 2 30px;
flex: auto; // = 1 1 auto;
flex: initial; // = 0 1 auto;
flex: none; // = 0 0 auto;
...
}
.grid {
...
flex-flow: <'flex-direction'> || <'flex-wrap'>;
flex-flow: row;
flex-flow: wrap;
flex-flow: column-reverse wrap;
...
}
See the Pen Flexbox Properties Demonstration by Minh Nguyen (@mihnsen) on CodePen.