There is more to styling lists in CSS than you might think. In this article, Rachel starts by looking at lists in CSS, and moving onto some interesting features defined in the CSS Lists specification — markers and counters.
Lists in CSS have particular properties which give us the standard list styling we expect. An unordered list gains a list bullet, of the type
disc
, and ordered lists are numbered. My interest in exploring lists in more detail came from some work I did to document the::marker
pseudo-element for MDN. This pseudo-element ships in Firefox 68 and is being released today. With the::marker
pseudo element available to us, we can start to do some interesting things with lists, and in this article, I’ll explain more.…
Curated by (Lifekludger)
Read full article at Source