<h2>flex-direction:row</h2>
<div class="container row">
  <div class="box">1</div>
  <div class="box">2</div>
  <div class="box">3</div>
</div>

<h2>flex-direction:row-reverse</h2>
<div class="container row-reverse">
  <div class="box">1</div>
  <div class="box">2</div>
  <div class="box">3</div>
</div>

<h2>flex-direction:column</h2>
<div class="container column">
  <div class="box">1</div>
  <div class="box">2</div>
  <div class="box">3</div>
</div>

<h2>flex-direction:column-reverse</h2>
<div class="container column-reverse">
  <div class="box">1</div>
  <div class="box">2</div>
  <div class="box">3</div>
</div>
.container{
  display: flex;
  margin-right: 10px;
  background-color: #eee;
  margin-bottom: 80px;
}

.row{ flex-direction:row; }
.row-reverse{flex-direction:row-reverse;}
.column{ flex-direction:column; }
.column-reverse{flex-direction:column-reverse;}

.box{
  width: 100px;
  height: 100px;
  margin: 10px;
  text-align: center;
  font-size: 50px;
  font-weight: bold;
  line-height: 100px;
}

.box:nth-child(1){background-color: gold;}
.box:nth-child(2){background-color: pink;}
.box:nth-child(3){background-color: skyblue;}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.