<div class="red">Normally aligned</div>
<div class="blue-wrapper">
  <div class="blue">Aligned right with flex</div>
</div>
.red, .blue {
  height: 200px;
  width: 200px;
  color: #fff;
  text-align: center;
}

.red {
  background-color: red;
}

.blue {
  background-color: blue;
}

.blue-wrapper {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.