Side-by-side list items as icons within a div (css)

前端 未结 7 1772
臣服心动
臣服心动 2020-12-30 00:48

I am looking for a way to create a

    of items that I can put within a
    and have them show up side-by-side and wrap to the next
7条回答
  •  萌比男神i
    2020-12-30 01:42

    Use the following code to float the items and make sure they are displayed inline.

    ul.myclass li{float:left;display:inline}

    Also make sure that the container you put them in is floated with width 100% or some other technique to ensure the floated items are contained within it and following items below it.

提交回复
热议问题