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 OverflowMDN Web Docs
developer.mozilla.org โบ en-US โบ docs โบ Web โบ CSS โบ Reference โบ Properties โบ list-style-image
list-style-image - CSS Demo - MDN Web Docs
December 16, 2025 - The list-style-image CSS property sets an image to be used as the list item marker.
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.
Videos
13:59
CSS List Properties | List Style Image | List Style Position | ...
CSS List Styles Tutorial for Beginners - YouTube
03:26
List Style Image Property CSS | CSS Tutorial Part 86 - YouTube
List Style Image, Propriedade do CSS 3
03:30
List Style, Propriedade do CSS 3 - YouTube
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 ...
Top answer 1 of 15
111
I'd use:
li {
list-style: none;
}
li::before {
content: '';
display: inline-block;
height: y;
width: x;
background-image: url();
}
2 of 15
72
I'm using:
li {
margin: 0;
padding: 36px 0 36px 84px;
list-style: none;
background-image: url("../../images/checked_red.svg");
background-repeat: no-repeat;
background-position: left center;
background-size: 40px;
}
where background-size set the background image size.
MDN Web Docs
developer.mozilla.org โบ en-US โบ docs โบ Web โบ CSS โบ list-style-image
list-style-image - CSS - MDN Web Docs
July 14, 2025 - The list-style-image CSS property sets an image to be used as the list item marker.
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.
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.
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.
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
Top answer 1 of 16
228
Not really. Your padding is (probably) being applied to the list item, so will only affect the actual content within the list item.
Using a combination of background and padding styles can create something that looks similar e.g.
li {
background: url(images/bullet.gif) no-repeat left top; /* <-- change `left` & `top` too for extra control */
padding: 3px 0px 3px 10px;
/* reset styles (optional): */
list-style: none;
margin: 0;
}
You might be looking to add styling to the parent list container (ul) to position your bulleted list items, this A List Apart article has a good starting reference.
2 of 16
79
I normally hide the list-style-type and use a background image, which is moveable
li
{
background: url(/Images/arrow_icon.gif) no-repeat 7px 7px transparent;
list-style-type: none;
margin: 0;
padding: 0px 0px 1px 24px;
vertical-align: middle;
}
The "7px 7px" is what aligns the background image inside the element and is also relative to the padding.