# list-style-image

> The `list-style-image` CSS property sets an image as the list item marker.

## How do I use a custom image for list bullets in CSS?

The property that sets an image to be used as the marker for list items. Instead of the default bullets or numbers, a custom image can be used, providing a unique look to ordered or unordered lists.

- Topic: Lists
- Type: property
- Browser support: Chrome 1+, Chrome Android 18+, Edge 12+, Firefox 1+, Firefox Android 4+, Safari 1+, Safari iOS 1+

## Example

Wrong:

```css
li {
  list-style-image: url("check-large.png");
}
```

Right:

```css
li {
  list-style: none;
  padding-inline-start: 1.5em;
  background: url("check.svg") no-repeat 0 0.2em / 1em;
}
```

`list-style-image` shows the image at its natural size, so a background gives control over size and position.

## Common mistakes

- The bullet image is too big and there is no way to scale it.

## Key points

- Bullet images that need a set size use `::marker`, `::before` or a background, since `list-style-image` cannot be resized.
- A `list-style-type` fallback is kept for when the image fails to load.
- Decorative bullet images carry no meaning that must be read aloud.

## Interview questions

### Can I change the size of list-style-image?

No. The image is shown at its natural size. Use an SVG drawn at the right size, or a background or `::before` image instead.

### Can I use an SVG for list-style-image?

Yes. Any image URL works, and an SVG with set width and height gives a crisp, predictable bullet.

## Related cards

- [list-style](https://wonderium.dev/css/list-style.md)
- [list-style-type](https://wonderium.dev/css/list-style-type.md)
- [::marker](https://wonderium.dev/css/marker.md)
- [background-image](https://wonderium.dev/css/background-image.md)
- [url()](https://wonderium.dev/css/url.md)

---

- Level: [CSS](https://wonderium.dev/css.md)
- HTML version: https://wonderium.dev/css/list-style-image
- Last updated: 2026-11-25
