November 14, 2019 03:21 pm GMT
Original Link: https://css-tricks.com/finally-it-will-be-easy-to-change-the-color-of-list-bullets/
Finally, it Will Be Easy to Change the Color of List Bullets
In my germinating years, the general advice was this:
<ul> <li><span>List item</span></li> <!-- ... --></ul>
li { color: red; } /* bullet */li span (color: black; } /* text */
Not terrible, but not great. You're "resetting" everything at the span level, so it gets more complicated the more you do.
Things are getting much easier. Let's take a walk through this world getting more modern as we go.
An alternative was to rip off the default list … Read article
The post Finally, it Will Be Easy to Change the Color of List Bullets appeared first on CSS-Tricks.
Original Link: https://css-tricks.com/finally-it-will-be-easy-to-change-the-color-of-list-bullets/
Share this article:
Tweet
View Full Article