How to make an element autoexpand right to left in HTML
Making an element expand the opposite direction is a useful html trick to remember
Float: right
Add the style float: right;
to the container
<div class="container" style="float: right;">
<div>1</div>
<div>2</div>
<div>3</div>
</div>