F
F
fedor_4uk2019-08-28 13:37:50
css
fedor_4uk, 2019-08-28 13:37:50

How to execute the layout of such a block?

Hello!
I started doing layout, I already broke my head, how to make layout like this layout:
5d6658f73a892436514492.png
The height of the columns is the same, but when narrowing / increasing the screen, the columns should adapt proportionally, while the distance between them remains the same.
I've already tried a bunch of options in flexbox, but I just can't think of the final one.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
R
Rustam Bainazarov, 2019-08-28
@fedor_4uk

I made it with flex, so this thing will work in IE11 too. Although it's easier to do with grid. In general, this can be done at least on a float (but not necessary).
You can even arrange them differently, nothing will fall apart:

A
Aleksey Levickyj, 2019-08-28
@AlekSays

You can safely do it on grids, and forget about IE11)))

A
Anton, 2019-08-28
@anton_tikhonov

See flex-basis property
https://codepen.io/Stoutov/pen/mdbmYJm

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question