What is the best flex layout for something like this in desktop:
Then stacked like this in mobile:
For my opinion you should be use this type of html and css structure.
Hope this help
Let me know further clarification.
.container {
display: flex;
width: 100%;
height: 300px;
flex-wrap: wrap;
}
.column {
flex: 1;
display: flex;
flex-direction: column;
font-size: 50px;
text-align: center;
}
.button {
flex: 1;
color: #fff;
border: 2px solid;
}
.button.rowspan {
flex: 2;
}
<div class="container">
<div class="column">
<div class="button" style="background: green">1</div>
<div class="button" style="background: blue">2</div>
</div>
<div class="column">
<div class="button rowspan" style="background: red;">3 - rowspan</div>
</div>
</div>