M
M
mishapsv2018-09-13 17:01:47
css
mishapsv, 2018-09-13 17:01:47

Is it possible to distribute blocks in this way using only CSS?

Is it possible to distribute blocks one by one so that they first line up in several columns / rows and, if they do not fit, a vertical scroll appears.
In this case, the blocks (heading and paragraphs) should go tightly one under the other.
5b9a6d986e520536815872.png

Answer the question

In order to leave comments, you need to log in

2 answer(s)
E
Eugene Chefranov, 2018-09-13
@Chefranov

Can. Learn Flex

E
eternalfire, 2018-09-13
@eternalfire

here you can’t figure it out without js - columns of different heights
I advise masonry
https://masonry.desandro.com/
but it’s possible to look in the direction of this
w3bits.com/labs/css-masonry

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question