CSS
.parent { display: flex; } .child2 { margin-left: auto; }
HTML
<div class="parent"> <div class="child1">left</div> <div class="child2">right</div> </div>
References
https://stackoverflow.com/questions/36601231/flexbox-float-right
CSS
.parent { display: flex; } .child2 { margin-left: auto; }
HTML
<div class="parent"> <div class="child1">left</div> <div class="child2">right</div> </div>
References
https://stackoverflow.com/questions/36601231/flexbox-float-right