When I resize my window, I am wanting a row of divs of different sizes to cascade, however when I try with Flexbox I am getting vertical white space due to the differing sizes of the divs.
Is there any way in which I can remove this whitespace/specify how much there is between the divs?
Here is a link to my stackblitz
.content {
color: #fff;
font: 100 24px/100px sans-serif;
height: 150px;
text-align: center;
}
.content div {
width: 300px;
}
.red {
background: orangered;
height: 40px;
}
.green {
background: yellowgreen;
height: 150px;
}
.blue {
background: steelblue;
height: 150px;
}
/* Flexbox Styles */
.content {
display: flex;
flex-wrap: wrap;
}
<div class="content">
<div class="red">1</div>
<div class="green">2</div>
<div class="blue">3</div>
</div>