Main Axis - flex-direction: row
<!-- HTML -->
<div class="row container">
<div class="item">a</div>
<div class="item">b</div>
<div class="item">c</div>
</div>
/* CSS */
.row {
display: flex;
/* Valor padrão, não precisa ser declarado,
coloquei aqui para fins didáticos. */
flex-direction: row;
}
Main Axis - flex-direction: row-reverse
<!-- HTML -->
<div class="row-reverse container">
<div class="item">a</div>
<div class="item">b</div>
<div class="item">c</div>
</div>
/* CSS */
.row-reverse {
display: flex;
flex-direction: row-reverse;
}
Main Axis - flex-direction: column
<!-- HTML -->
<div class="col container">
<div class="item">a</div>
<div class="item">b</div>
<div class="item">c</div>
</div>
/* CSS */
.col {
display: flex;
flex-direction: column;
}
Main Axis - flex-direction: column-reverse
<!-- HTML -->
<div class="col-reverse container">
<div class="item">a</div>
<div class="item">b</div>
<div class="item">c</div>
</div>
/* CSS */
.col {
display: flex;
flex-direction: column-reverse;
}
flex-wrap: nowrap
<!-- HTML -->
<div class="nowrap container">
<div class="item">a</div>
<div class="item">b</div>
<div class="item">c</div>
</div>
/* CSS */
.nowrap {
display: flex;
flex-wrap: nowrap;
}
flex-wrap: wrap
<!-- HTML -->
<div class="wrap container">
<div class="item">a</div>
<div class="item">b</div>
<div class="item">c</div>
</div>
/* CSS */
.wrap {
display: flex;
flex-wrap: wrap;
align-content: flex-start;
}