CSS styling for horizontal list with bullet only between elements

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

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

\"Centered

11条回答
  •  清歌不尽
    2020-12-09 07:56

    For those of you who don't have to worry about IE8, this is as simple as:

    ul li { list-style: none; display: inline; }
    ul li:after { content: " \00b7"; }
    ul li:last-child:after { content: none; }
    

提交回复
热议问题