html - Changing bullet color for an unordered list with li:before? -


this question has answer here:

i had 1 great solution on how change color of bullet. solution made note of way.

"if can't modify html, can either use list-style-image custom-colored dot, or use generated content (i.e. li:before) , color accordingly (but watch out list bullet position problems)."

can explain this.

thanks

this means when can change css , not html, can add contents pure css.

in this example unicode character \2022 rendered bullet added before each list item , colored red.

the css hides previous list item "marker" list-style-type: none; line above.


Comments