D
D
djok21422018-09-13 15:31:19
css
djok2142, 2018-09-13 15:31:19

Is it possible to make an element wrap around inside a Flexbox container and have the wrapping elements fill all the empty space widthwise?

Hello.
There is the following layout

<div class="wrap">
  <div class="left"></div>
  <div class="right"></div>
  <div class="right"></div>
</div>

I'm trying to do this.
5b9a541f21a87092735063.jpeg
The width of the .wrap depends on the size of the browser window.
The height of .left and .right depends on the content.
But no matter how I try, nothing comes out. Please help.
Or is this impossible to implement using Flexbox?
Current sample code on JSFiddle

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question