W
W
weranda2016-08-09 17:11:03
css
weranda, 2016-08-09 17:11:03

How to arrange boxes with flexbox at the same distance from each other?

Greetings
, I can’t figure out how to use the flexbox properties to place nested blocks in such a way that they do not recede from the boundaries of the parent block, and when the size of the parent block is reduced, they would be placed in two lines and, as in the first case, they would have the same indents from each other and would not recede from the borders of the parent block.
8a7cb95cf2584e2b9453b2c2af294f59.png
How?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
G
GreatRash, 2016-08-09
@GreatRash

justify-content: space-between;
align-content: space-between;

E
Eugene, 2016-08-09
@AppFA

Maybe something like this:
https://jsfiddle.net/jLvegoku/
Or add more MQ

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question