Is it possible to make a horizontal masonry blocks Masonry in css?

On the Internet there are plenty of ways to make the vertical blocks of different height.
For flexbox this is done quickly and easily. But is it possible to make a horizontal output elements?

The width of the blocks are the same, but the height is different.

1 2 3 4
5 6 7 8
March 12th 20 at 08:08
1 answer

Find more questions by tags CSS