<!doctype html>
<title>Example</title>
<style>
.container {
display: flex;
flex-direction: row;
align-items: flex-start;
background: beige;
height: 100vh;
flex-wrap: wrap-reverse;
}
.red {
background: orangered;
.green {
background: yellowgreen;
.blue {
background: steelblue;
.container > div {
font-size: 5vw;
padding: .5em;
color: white;
width: 60%;
body {
margin: 0;
</style>
<div class="container">
<div class="red">1</div>
<div class="green">2</div>
<div class="blue">3</div>
</div>