csspoo

Search

Tags

  • Animation 1
  • Hover 2

Feed

RSS2.0
  • 2019-11-23

    Colored list bullets

    Author

    Jens Törnell

    Comments

    Start a discussion

    Colored bullets are not supported by CSS. Istead a workaround is needed.

    Full page

    ul {
      list-style: none;
    }
    
    li::before {
      content: "•";
      color: red;
      display: inline-block;
      width: 1em;
      margin-left: -1em;
    }

    Sources

    • https://www.w3.org/Style/Examples/007/color-bullets.en.html

    If you like this post, please share it! Tweet this!

  • Write for us
  • Contact us
  • About
  • License
Copyright © 2019

This page uses cookies for Google Analytics.