I'd use:

li {
  list-style: none;
}
li::before {
  content: '';
  display: inline-block;
  height: y;
  width: x;
  background-image: url();
}
Answer from Chris on Stack Overflow
๐ŸŒ
W3Schools
w3schools.com โ€บ cssref โ€บ pr_list-style-image.php
CSS list-style-image property
The list-style-image property replaces the list-item marker with an image.
๐ŸŒ
CSS Reference
cssreference.io โ€บ property โ€บ list-style-image
list-style-image - CSS Reference
New! My 44-page ebook "CSS in 44 minutes" is out! ๐Ÿ˜ƒ Get it now โ†’ ยท Defines the image to be used as an list item's bullet point. ... The list items will use the bullet point defined by the list-style-type value, which by default is a disc.
๐ŸŒ
Tailwind CSS
tailwindcss.com โ€บ docs โ€บ list-style-image
list-style-image - Typography - Tailwind CSS
Use the list-image-(<custom-property>) syntax to control the marker image for list items using a CSS variable: <ul class="list-image-(--my-list-image)"> <!-- ... --></ul> This is just a shorthand for list-image-[var(<custom-property>)] that ...
๐ŸŒ
Codrops
tympanus.net โ€บ codrops โ€บ css_reference โ€บ list-style-image
list-style-image | Codrops
February 4, 2015 - CSS Reference Property ยท The list-style-image property is used to specify an image that is to be used as a marker (bullet) for list items or elements with <a href="http://tympanus.net/codrops/css_reference/display">display</a>: list-item. When the image is available, it will replace the the ...
๐ŸŒ
DoFactory
dofactory.com โ€บ css โ€บ list-style-image
CSS list-style-image
CSS list-style-image -- the best examples. The list-style-image property replaces the list item marker with an image. The image marker is displayed at the same size of the actual image and cannot be resized.
Find elsewhere
๐ŸŒ
TechOnTheNet
techonthenet.com โ€บ css โ€บ properties โ€บ list_style_image.php
CSS: list-style-image property
This CSS tutorial explains how to use the CSS property called list-style-image with syntax and examples. The CSS list-style-image property defines the image to use as the list item marker, which is the image that appears before each list item.
๐ŸŒ
TutorialsPoint
tutorialspoint.com โ€บ css โ€บ css_list-style-image.htm
CSS - list-style-image Property
<!DOCTYPE html> <html> <head> <style> li { font-size: 22px; font-weight: bold; } .unordered1 { color: red; list-style-image: url("/css/images/cursor-zoom-out.png"); list-style-type: circle; } .unordered2 { color: green; list-style-image: url("/css/images/cursor-e-resize.png"); list-style-type: square; } </style> </head> <body> <h2> CSS list-style-image property </h2> <h4> list-style-image: url () </h4> <ul class="unordered1"> <li> Apple </li> <li> Banana </li> <li> Orange </li> <li> Pineapple </li> </ul> <h4> list-style-image: url () </h4> <ul class="unordered2"> <li> Potato </li> <li> Onion </li> <li> Cabbage </li> <li> Tomato </li> </ul> <p> Note: list-style-type is also defined in case the image cannot be used.
๐ŸŒ
GeeksforGeeks
geeksforgeeks.org โ€บ css โ€บ css-list-style-image-property
CSS list-style-image Property - GeeksforGeeks
August 27, 2024 - CSS List-Style-Image Property is a handy tool that allows you to customize your list item markers with images.
๐ŸŒ
W3Schools
w3schools.com โ€บ css โ€บ css_list.asp
CSS Styling Lists
The CSS list-style-image property is used to replace the list-item marker with an image.
๐ŸŒ
HTML Dog
htmldog.com โ€บ references โ€บ css โ€บ properties โ€บ list-style-image
CSS Property: list-style-image | HTML Dog
An image to be used as a list item marker. Applies to boxes set to display: list-item (of which li HTML elements are by default). List style image can also be specified as part of the list-style shorthand property.
๐ŸŒ
W3docs
w3docs.com โ€บ learn-css โ€บ list-style-image.html
CSS list-style-image Property
The list-style-image property is used to put an image instead of the list item marker.
๐ŸŒ
Tailwind CSS
v3.tailwindcss.com โ€บ docs โ€บ list-style-image
List Style Image - Tailwind CSS
September 4, 2025 - By default, Tailwind only provides the list-image-none utility. You can customize these values by editing theme.listStyleImage or theme.extend.listStyleImage in your tailwind.config.js file. ... module.exports = { theme: { extend: { listStyleImage: { checkmark: 'url("/img/checkmark.png")', }, } } } Learn more about customizing the default theme in the theme customization documentation. If you need to use a one-off list-style-image value that doesnโ€™t make sense to include in your theme, use square brackets to generate a property on the fly using any arbitrary value.
๐ŸŒ
GeeksforGeeks
geeksforgeeks.org โ€บ css โ€บ how-to-resize-list-style-image-in-css
How to resize list style image in CSS ? - GeeksforGeeks
July 23, 2025 - Approach 3: We set a separate custom image for every list item and add style to that image.
๐ŸŒ
Quackit
quackit.com โ€บ css โ€บ properties โ€บ css_list-style-image.cfm
CSS list-style-image
CSS list-style-image - CSS property to specify an image to be used as a list marker's default contents.
๐ŸŒ
W3Schools
w3schools.com โ€บ css โ€บ tryit.asp
The list-style-image Property
The W3Schools online code editor allows you to edit code and view the result in your browser
๐ŸŒ
Master
css.master.co โ€บ docs โ€บ list-style-image
List Style Image - Master CSS
The list-style-image CSS property sets an image to be used as the list item marker.