- Instant help with your CSS coding problems

Use custom bullet symbol for list elements

Question:
How to use custom bullet symbol for list elements?
Answer:
li::marker {
    content: '$ '
}
Description:

If you want to change the bullets in HTML lists, but don't have the desired character in the list-style-type property list and don't want to use images or emojis, the ::marker pseudo-element may be the solution.

The ::marker CSS pseudo-element selects the marker box of a list item, which typically contains a bullet or number. Using its content property you can set any character or string as a bullet.

Share "How to use custom bullet symbol for list elements?"
Tags:
custom, bullet, dot, style, change, set, custom bullet, custom dot, list, html, css
Technical term:
Use custom bullet symbol for list elements
Interesting things
OpanAi's ChatGPT