T
T
Taron4uk2020-01-04 19:38:07
css
Taron4uk, 2020-01-04 19:38:07

How to make a list on flexbox so that at the end the blocks do not rise at the edges?

I enter styles for the list:

display: flex;
flex-wrap: wrap;
justify-content: space-between;


justify-content: space-between;- all the troubles because of him, but then how to make them stand indented, thereby not indenting the block that is the last in the row?

It turns out everything is as in the image:

5e10bf4ec0fd8195866755.jpeg

How to do this?

5e10bf6d2ec99823544762.jpeg

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Rustam Bainazarov, 2020-01-04
@Taron4uk


I think the correlation of everything will be easy to understand. In the example, the gap is emulated at 20px. On flex's, this is the only way.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question