<div class="l-justify-left">
  <div class="box"></div>
  <div class="box"></div>
</div>

<div class="l-justify-center">
  <div class="box"></div>
  <div class="box"></div>
</div>

<div class="l-justify-right">
  <div class="box"></div>
  <div class="box"></div>
</div>

<div class="l-justify-left">
  <div class="l-direction-column">
    <div class="box"></div>
    <div class="box"></div>
  </div>
</div>

<div class="l-justify-center">
  <div class="l-direction-column">
    <div class="box"></div>
    <div class="box"></div>
  </div>
</div>

<div class="l-justify-right">
  <div class="l-direction-column">
    <div class="box"></div>
    <div class="box"></div>
  </div>
</div>
.l-justify-left {
  display: flex;
  justify-content: flex-start;
}
.l-justify-center {
    display: flex;
    justify-content: center;
}
.l-justify-right {
    display: flex;
    justify-content: flex-end;
}
.l-direction-column {
    display: flex;
    flex-direction: column;
}
.box {
  display: inline;
  width: 50px;
  height: 50px;
  margin: 5px;
  background-color: #ff0000;
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.