property

List style image — CSS reference

Uses an image as the default marker of a list item. If it cannot be displayed, list-style-type provides a fallback. Use a small image and keep textual labels meaningful. The example deliberately uses an invalid data URL to test fallback, without network requests.

Formal Syntax & Structure

css syntaxcss
list-style-image: url("bullet.svg");

Working Example

Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>list-style-image</title><style>body{margin:0}#a{padding:8px;background:rgb(232,237,241);color:rgb(0,0,0);box-sizing:border-box}body{font:16px/1.5 sans-serif}#a{margin:16px;padding:8px 8px 8px 80px;background:white}li{padding-left:4px}#a{list-style-type:decimal;list-style-image:url("data:image/png;base64,invalid")}</style><body><ol id="a"><li>ONE</li><li>TWO</li><li>THREE</li></ol></body></html>
CSS Reference