Float unordered lists (UL) next to one another, and stack them at the bottom of each other, with no margins or spaces

后端 未结 3 910
灰色年华
灰色年华 2021-01-03 16:45

I have multiple unordered lists (UL) elements. Please check the image below:\"multiple

3条回答
  •  执念已碎
    2021-01-03 17:27

    That would be possible if you stacked them vertically. This jsfiddle here illustrates your problem, the next row of items will start off where the longest ul reaches in the previous row. Instead of creating new columns for the new row, you could insert the ul's back into the original columns to stack the ul's vertically. Take a look at this jsfiddle to see the difference.

    Sorry, don't know if you can reach those links. jsfiddle.net seems to be under heavy load right now.

提交回复
热议问题