Combining CSS Pseudo-elements, “:after” the “:last-child”

后端 未结 8 1277
时光说笑
时光说笑 2020-12-22 20:18

I want to make \"grammatically correct\" lists using CSS. This is what I have so far:

The

  • tags are displayed horizontally with commas after t
  • 8条回答
    •  -上瘾入骨i
      2020-12-22 21:01

      I am using the same technique in a media query which effectively turns a bullet list into an inline list on smaller devices as they save space.

      So the change from:

      • List item 1
      • List item 2
      • List item 3

      to:

      List Item 1; List Item 2; List Item 3.

    提交回复
    热议问题