M
M
Matvey Phoenix2018-10-04 15:04:31
css
Matvey Phoenix, 2018-10-04 15:04:31

How to align list items?

How can I align such a list in 3 columns?

<ul>
  <li>1</li>
  <li>2</li>
  <li>3</li>
  <li>4</li>
     ........
</ul>

5bb600a0bc39e547354540.png
The height of the blocks can be different, as well as their number. With a question mark - a large block with a picture.
If you align using flex-flow: row wrap - if one of the row blocks is high, the next row will start where the largest block of the previous row ended.
The overall height of the list can also change, so flex-flow: column wrap and limiting the parent block to a height is also not suitable.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
U
uiworks, 2018-10-04
@mtvphnx

https://masonry.desandro.com/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question