This example uses: justify-content: flex-end
. Resize window.
.flex-container { display: flex; justify-content: flex-end; background-color: indianred; } .flex-container > div { background-color: powderblue; margin: 10px; padding: 20px; font-size: 30px; }
<div class="flex-container">
<div>1</div>
<div>2</div>
<div>3</div>
</div>