make the 2nd line fill up the gaps above

前端 未结 3 1152
名媛妹妹
名媛妹妹 2021-01-22 22:12

A simple html/css issue. Please look at this example, I would like the blocks in the 2nd line to fill up the gaps above them. Anyway besides using JavaScript?

.b         


        
3条回答
  •  情深已故
    2021-01-22 22:50

    Simple answer, NO.

    (sorry)

    This cannot be accomplished in vanilla HTML or CSS alone, you will need to look into a JavaScript implementation like Isotope or Masonry, or one of your own making.

提交回复
热议问题