I am trying to get my page layout like this:
desktop view:
|---------------|--------|
| block 1 | block2 |
| | |
| |--------|
| | block3 |
| | |
mobile view:
|---------------|
| block 2 |
|---------------|
| block 1 |
| |
| |
|---------------|
| block 3 |
|---------------|
at the moment i able to position block 1 and 2 with flex-wrap
flex-direction
and width of blocks.
.container {
display: flex;
flex-wrap: wrap;
flex-direction: row;
}
.block1 {
width: 66%;
}
.block2 {
width: 33%;
}
@media (max-width: 580px) {
.block1, .block2 { width: 100%; }
.container { flex-direction: column-reverse; }
}
<div class="container">
<div class="block1">Block 1</div>
<div class="block2">Block 2</div>
</div>
How to position block 3?