D
D
dvakarandasha2020-04-15 18:12:59
css
dvakarandasha, 2020-04-15 18:12:59

Does anyone know how to display elements under each other in Flex?

Good afternoon, I need to set up the display of blocks inside the flex so that they adjoin each other without gaps:
WLId7Hj1QzlAotbQ_kVUzR_YxWkWnk0PIJvur4d8

Elements, as in the example, will be of different heights, as in the example - a maximum of 5 in a row, then the next line, then the next, etc. The problem is that no matter what align-items and align-content settings I apply, it still doesn't work out as I need. How to be here, who will tell?

https://jsfiddle.net/kamaev/bbbzdjuz/?utm_source=w...

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
Lynn "Coffee Man", 2020-04-15
@dvakarandasha

Google masonry
Flex will not help here

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question