Your Web News in One Place

Help Webnuz

Referal links:

Sign up for GreenGeeks web hosting
November 14, 2019 03:21 pm GMT

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:    Share on Facebook
View Full Article

CSS Tricks

A Web Design Community curated by Chris Coyier

More About this Source Visit CSS Tricks