D
D
Dnebl2016-07-27 22:16:54
css
Dnebl, 2016-07-27 22:16:54

Block layout, is it possible to do this?

276b2527f37f4d20a3fbae6042f4e548.png
Is it possible to achieve such an arrangement of blocks using flex (as in the screenshot), with such a markup?

<div class="container">
  <div class="block b"></div>
  <div class="block b1"></div>
  <div class="block b2"></div>
</div>

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Ankhena, 2016-07-28
@Dnebl

Something like this: codepen.io/anon/pen/VjdxGy
Only doing it with flex is rather strange, float is more in place here.
Still, I think, it is necessary to clarify the conditions of the problem, dimensions, adaptability, etc.

L
Leonid Shishkin, 2016-07-27
@leonidshishkin

You can also do this with float. The blue block is float:left and the other two are float:right.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question