CSS: colored bullets and list numbers – W3

This post was originally published on this site

Ditto if you want a different color. So we’d rather use text that we can style, in particular a bullet such as • or or . We need to replace the list item’s marker, which we cannot select, by a bullet that we generate and style ourselves. For that we suppress the list style and use ‘::before’ to add our own bullet.

Stay up to date
Register now to get updates on promotions and coupons.

Shopping cart