-4

I'm trying with 4 div to get this result in flex. I have my container in display: flex; how to get this result ?

        <div class="pictures">
            <div class="big"></div>
            <div class="small"></div>
            <div class="small"></div>
            <div class="bottom"></div>
        </div>

enter image description here

Artik
  • 85
  • 1
  • 3
  • 9

1 Answers1

0
<div style="display: flex; flex-direction: row;">
    <girl/>
    <div style="display: flex; flex-direction: column;">
        <div style="display: flex; flex-direction: row;">
            <horizontal lines image/>
            <vertical lines image/>
        </div>
        <sweet escape image/>
    </div>
</div>

The concept you are missing is the "flex-direction" one. It tells the flex box to layout the children either in a row or column. You just need to use that, and nest them!

TJ_
  • 328
  • 2
  • 13