CSS styling for horizontal list with bullet only between elements

后端 未结 11 2366
刺人心
刺人心 2020-12-09 07:23

I\'m not sure how to build a horizontal list that looks like this:

\"Centered

11条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-09 08:13

    In the simplest of ways, all you would require is setting text-align: center on the ul and display: inline-block on li in your stylesheet. You can use an image as a separator if you wish by leveraging the :after pseudo class on li.

    Here's an example.

提交回复
热议问题