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
🌐
freeCodeCamp
forum.freecodecamp.org › html-css
How do you resize a list style image in CSS - HTML-CSS - The freeCodeCamp Forum
June 8, 2018 - Tell us what’s happening: I’m working on adding image bullets in my tech doc page project but the image that I’m using is showing up way too big. Can any one help me resize it properly. Here’s my link to see it in action: Your code so far ul.pool {list-style-image: url(http://www.freepngimg.com/thumb/star/1-red-star-png-image-thumb.png); } list-style-image: .pool { list-style-type: none; } ul.pool :before { content: ‘’; display: ; height: 10px; width: 10px; background-size: 2px; ...
Discussions

html - How to resize list style image - Stack Overflow
I have been working on my website most of the day and I have run into a problem, where I wish to remove the standard bullet point from my un ordered list and add an image instead. I have added an i... More on stackoverflow.com
🌐 stackoverflow.com
How do you resize a list style image in CSS
Tell us what’s happening: I’m working on adding image bullets in my tech doc page project but the image that I’m using is showing up way too big. Can any one help me resize it properly. Here’s my link to see it in act… More on freecodecamp.org
🌐 freecodecamp.org
0
0
August 6, 2018
html - How to resize list-style-images? - Stack Overflow
Just doing some practice by recreating the tumblr website, Im having some issues with the right side where it says "Recommended Blogs". I want to implement the use of a small user icon logo instead... More on stackoverflow.com
🌐 stackoverflow.com
November 4, 2021
Bullet point image size reduction?
Use a background image and padding instead of list-style-image: li { list-style: none; padding: 10px 30px; background-image: url("your_image_url"); background-repeat: no-repeat; background-position: left center; background-size: 20px; /* adjust this to the size you want */ } This is the easiest method More on reddit.com
🌐 r/CodingHelp
4
2
June 6, 2023
🌐
GeeksforGeeks
geeksforgeeks.org › css › how-to-resize-list-style-image-in-css
How to resize list style image in CSS ? - GeeksforGeeks
July 23, 2025 - In the above output image, users can see the difference between the size of the list-style-image when we set sizes 30px and 10px.
🌐
Sololearn
sololearn.com › en › Discuss › 387548 › liststyleimagethe-image-size
"List-style-image"the image size.. | Sololearn: Learn to code for FREE!
You can't resize list-style-image. it will be actual size of the linked image, if you increase font-size then list font size will also increase.
🌐
MDN Web Docs
developer.mozilla.org › en-US › docs › Web › CSS › list-style-image
list-style-image - CSS - MDN Web Docs
July 14, 2025 - .default-example { font-size: 1.2rem; } #example-element { width: 100%; background: #be094b; color: white; } section { text-align: left; flex-direction: column; } hr { width: 50%; color: lightgray; margin: 0.5em; } .note { font-size: 0.8rem; } .note a { color: #009e5f; } @counter-style space-counter { symbols: "\1F680" "\1F6F8" "\1F6F0" "\1F52D"; suffix: " "; } Note: This property is applied to list items, i.e., elements with display: list-item; by default this includes <li> elements.
🌐
IQCode
iqcode.com › code › css › list-style-image-size
list-style-image size Code Example
November 4, 2021 - list-style image size css list style url siz list-style-type image size css change list style image size how to set list-style-image size css size of list-style-image list-style-image css size list style image sizes list-style-image change size list-style-image width and height list-style-image width list style image size in css list style image width In CSS, Select the property to set an image in a list instead of a standard bullet change size of list-style-image list-style-image image size list dot style size css image as list bullet show image in list style css change ul li icon image css w
🌐
W3docs
w3docs.com › learn-css › list-style-image.html
CSS list-style-image Property
The used value of the missing dimension will be calculated from from the provided ratio and dimension.If the image has an inherent ratio and either an inherent height/width, the used height/width will be the same as the provided inherent height/width. The used value of the missing dimension will be calculated from from the provided ratio and dimension. The list-style-image property is applied to list items and elements with display set to "list-item".
Find elsewhere
🌐
DoFactory
dofactory.com › css › list-style-image
CSS list-style-image
The list-style-image property uses an image as marker. The image marker displays as is, and cannot be resized.
🌐
Sololearn
sololearn.com › en › Discuss › 3263663 › how-do-i-resize-the-image-of-the-liststyleimage-property-in-css
Sololearn: Learn to Code
February 4, 2024 - list-style-image assumes your image is already resized to the final size. There is really no good way to resize it. use li::before and use the image url as background-image for more control.
🌐
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.
🌐
Sololearn
sololearn.com › en › Discuss › 1001211 › how-to-change-liststyleimage-size
How to change list-style-image size? | Sololearn: Learn to code for FREE!
January 13, 2018 - Is it possible?? I have no idea thank you ... Resizing list-style-image is not possible, but you can workaround by using background-image instead: https://code.sololearn.com/W6sZLcVfq20f/#html
🌐
Stack Overflow
stackoverflow.com › questions › 79573801 › sizing-list-style-image
python - Sizing list-style-image - Stack Overflow
ul li{ list-style-image: url("img/piz.png"); width: 10px; height: 10px; } ul li:before { width: 10PX; height: 10PX; size: 3px; }
Top answer
1 of 5
34

I would approach solving this problem using a pseudo element before each li

Here is the markup

ul {
    list-style: none;
}

li {
    position: relative;
}

li:before {
    /*
    The desired width gets defined in two places: The element width, and background size.
    The height only gets defined once, in background size.
    */
    position: absolute;
    display: block;
    content: '\2022'; /* bullet point, for screen readers */
    text-indent: -999999px; /* move the bullet point out of sight */
    left: -.75em;
    width: .4em; /* desired width of the image */
    height: 1em; /* unrelated to image height; this is so it gets snipped */
    background-repeat: no-repeat;
    background-image: url('data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz48IURPQ1RZUEUgc3ZnIFBVQkxJQyAiLS8vVzNDLy9EVEQgU1ZHIDEuMS8vRU4iICJodHRwOi8vd3d3LnczLm9yZy9HcmFwaGljcy9TVkcvMS4xL0RURC9zdmcxMS5kdGQiPjxzdmcgdmVyc2lvbj0iMS4xIiBpZD0iTGF5ZXJfMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeD0iMHB4IiB5PSIwcHgiIHdpZHRoPSI4cHgiIGhlaWdodD0iMTRweCIgdmlld0JveD0iMCAwIDggMTQiIGVuYWJsZS1iYWNrZ3JvdW5kPSJuZXcgMCAwIDggMTQiIHhtbDpzcGFjZT0icHJlc2VydmUiPjxwYXRoIGZpbGw9IiM2NjY2NjYiIGQ9Ik0wLjM3LDEyLjYzOGw1LjcyNi01LjU2NUwwLjUzMSwxLjM0N0MwLjI1MiwxLjA1OSwwLjI2MSwwLjYwMSwwLjU0NywwLjMyMWMwLjI4OS0wLjI3OSwwLjc0Ni0wLjI3MiwxLjAyNiwwLjAxNmw2LjA2Miw2LjI0YzAsMC4wMDIsMC4wMDYsMC4wMDQsMC4wMDgsMC4wMDZjMC4wNjgsMC4wNywwLjExOSwwLjE1NiwwLjE1NiwwLjI0NEM3LjkwMiw3LjA4OCw3Ljg0Niw3LjM5OSw3LjYzMSw3LjYxYy0wLjAwMiwwLjAwNC0wLjAwNiwwLjAwNC0wLjAxLDAuMDA2bC02LjIzOCw2LjA2M2MtMC4xNDMsMC4xNDEtMC4zMzEsMC4yMDktMC41MTQsMC4yMDVjLTAuMTg3LTAuMDA2LTAuMzcyLTAuMDc4LTAuNTExLTAuMjIxQzAuMDc2LDEzLjM3NiwwLjA4MywxMi45MTksMC4zNywxMi42MzgiLz48L3N2Zz4=');
    background-size: .4em .7em;
    background-position: 0 .3em;
}

.small-list {
    font-size: 85%;
}

.large-list {
    font-size: 150%;
}
<ul class="small-list">
  <li>The goal is to make the chevron smaller for this list</li>
  <li>Specifically, just slightly smaller than capital letters, as stated.</li>
  <li>Nomas matas</li>
  <li>Roris dedit</li>
</ul>
    
<ul class="large-list">
  <li>And larger for this list</li>
  <li>Multiline list item<br>for testing</li>
  <li>Nomas matas</li>
  <li>Roris dedit</li>
</ul>

Explanation:

  • First we get rid of the default bullets on the ul
  • Then we create a pseudo element in front of each li using the :before selector and content: '\2022';
    • The content: '\2022'; adds the unicode bullet point, •, for screen readers to read out. The text indent moves it well out of sight.
  • We then apply a background (chevron) to the pseudo elements, and size it using a few properties. The key part here is to ensure that the dimensions maintain the same ratio as the svg. The dimensions on the pseudo element are defined using em so that they adjust proportionally when the font-size is changed. Finally, we also position the background where the bullet would have been.
    • background-size: .4em .7em; tells the browser to size the background the way the image should be sized, we need to maintain the correct aspect ratio here.
    • background-position: 0 .3em; moves the chevron image in line with the text.
    • width: .4em; makes the psuedo element just wide enough to fit the image, and height: 1em; makes it match line height, and be tall enough to fit the offset as well.

Caveat: - IE 8 doesn't support background-size, but I presume that this will not be an issue as it also doesn't support rendering svg.

2 of 5
6

In your SVG image XML you must remove the width and height attributes, and then the SVG will scale to be 100% or 1em of the font-size

Here is the base64 version of your image with this done:

list-style-image: url('data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz48IURPQ1RZUEUgc3ZnIFBVQkxJQyAiLS8vVzNDLy9EVEQgU1ZHIDEuMS8vRU4iICJodHRwOi8vd3d3LnczLm9yZy9HcmFwaGljcy9TVkcvMS4xL0RURC9zdmcxMS5kdGQiPjxzdmcgdmVyc2lvbj0iMS4xIiBpZD0iTGF5ZXJfMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeD0iMHB4IiB5PSIwcHgiIHZpZXdCb3g9IjAgMCA4IDE0IiBlbmFibGUtYmFja2dyb3VuZD0ibmV3IDAgMCA4IDE0IiB4bWw6c3BhY2U9InByZXNlcnZlIj48cGF0aCBmaWxsPSIjNjY2NjY2IiBkPSJNMC4zNywxMi42MzhsNS43MjYtNS41NjVMMC41MzEsMS4zNDdDMC4yNTIsMS4wNTksMC4yNjEsMC42MDEsMC41NDcsMC4zMjFjMC4yODktMC4yNzksMC43NDYtMC4yNzIsMS4wMjYsMC4wMTZsNi4wNjIsNi4yNGMwLDAuMDAyLDAuMDA2LDAuMDA0LDAuMDA4LDAuMDA2YzAuMDY4LDAuMDcsMC4xMTksMC4xNTYsMC4xNTYsMC4yNDRDNy45MDIsNy4wODgsNy44NDYsNy4zOTksNy42MzEsNy42MWMtMC4wMDIsMC4wMDQtMC4wMDYsMC4wMDQtMC4wMSwwLjAwNmwtNi4yMzgsNi4wNjNjLTAuMTQzLDAuMTQxLTAuMzMxLDAuMjA5LTAuNTE0LDAuMjA1Yy0wLjE4Ny0wLjAwNi0wLjM3Mi0wLjA3OC0wLjUxMS0wLjIyMUMwLjA3NiwxMy4zNzYsMC4wODMsMTIuOTE5LDAuMzcsMTIuNjM4Ii8+PC9zdmc+');

Unfortunately you cannot explicitly set the size of a list-style-image, however there is one hack solution which doesn't require any further HTML;

If your LI elements only contain a single line of text (which is quite often the case with lists) then you can use the css selector ::first-line to scale your font-size up or down without affecting your list-style-image.

Giving this alternative solution:

ul {
  list-style-image: url('data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz48IURPQ1RZUEUgc3ZnIFBVQkxJQyAiLS8vVzNDLy9EVEQgU1ZHIDEuMS8vRU4iICJodHRwOi8vd3d3LnczLm9yZy9HcmFwaGljcy9TVkcvMS4xL0RURC9zdmcxMS5kdGQiPjxzdmcgdmVyc2lvbj0iMS4xIiBpZD0iTGF5ZXJfMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeD0iMHB4IiB5PSIwcHgiIHZpZXdCb3g9IjAgMCA4IDE0IiBlbmFibGUtYmFja2dyb3VuZD0ibmV3IDAgMCA4IDE0IiB4bWw6c3BhY2U9InByZXNlcnZlIj48cGF0aCBmaWxsPSIjNjY2NjY2IiBkPSJNMC4zNywxMi42MzhsNS43MjYtNS41NjVMMC41MzEsMS4zNDdDMC4yNTIsMS4wNTksMC4yNjEsMC42MDEsMC41NDcsMC4zMjFjMC4yODktMC4yNzksMC43NDYtMC4yNzIsMS4wMjYsMC4wMTZsNi4wNjIsNi4yNGMwLDAuMDAyLDAuMDA2LDAuMDA0LDAuMDA4LDAuMDA2YzAuMDY4LDAuMDcsMC4xMTksMC4xNTYsMC4xNTYsMC4yNDRDNy45MDIsNy4wODgsNy44NDYsNy4zOTksNy42MzEsNy42MWMtMC4wMDIsMC4wMDQtMC4wMDYsMC4wMDQtMC4wMSwwLjAwNmwtNi4yMzgsNi4wNjNjLTAuMTQzLDAuMTQxLTAuMzMxLDAuMjA5LTAuNTE0LDAuMjA1Yy0wLjE4Ny0wLjAwNi0wLjM3Mi0wLjA3OC0wLjUxMS0wLjIyMUMwLjA3NiwxMy4zNzYsMC4wODMsMTIuOTE5LDAuMzcsMTIuNjM4Ii8+PC9zdmc+');
}

.small-list {
  font-size: 140%;
}
.large-list {
  font-size: 350%;
}

.small-list li::first-line,
.large-list li::first-line{
 font-size: 70%;
}
🌐
SitePoint
sitepoint.com › html & css
Set list-style-image size - HTML & CSS - SitePoint Forums | Web Development & Design Community
June 28, 2006 - How do I restrict the size of an list-style-image item? Most of the time the URL is from a remote server (that is out of my control). This is for a Firefox extension, but it is a CSS issue, so I don’t have to worry much about cross-browser support, but I am restricted to using a list-style-image.
🌐
Reddit
reddit.com › r/csshelp › redize img possible? list-style-image: url('img.png');
r/csshelp on Reddit: Redize img possible? list-style-image: url('img.png');
May 22, 2022 -

Good day,

learning css and I was wondering if I am getting a image from dir through:

list-style-image: url('img.png');

Can I resize it? Background: Have a unsorted list with bullet points and want them change through linking image. Of course I could resize the img through graphic program but curious if there is another way.
Maybe I can give the linked img a id?
HTML:

<div class="categories">
h2>categories</h2
ul>
il> text</il

CSS:

.categories li{
list-style-image: url('img.png');
}

Thank you.