How to CSS a two column list of items?

前端 未结 7 921
萌比男神i
萌比男神i 2021-01-04 03:39

I need to display a two column list of items according to the following rules:

  • Container for the columns has fluid width
  • Width of both columns needs t
7条回答
  •  一个人的身影
    2021-01-04 04:10

    You just need the CSS multi-column properties, e.g. ul { column-count: 2; }.

    See Can I Use for support information on CSS Columns.

提交回复
热议问题