-1

Image size is too big to be a bullet

that's the code

list-style-image:  url("https://www.boylesoftware.com/blog/wp-content/uploads/2015/04/checkmark.png") ;

I was expecting it be of small size like that of a actual bullet but it turned out too big

Cédric
  • 2,239
  • 3
  • 10
  • 28

2 Answers2

1

You can fix that problem applying the below style:

li {
  margin: 0;
  padding: 0 0 0 20px;
  list-style: none;
  background-image: url("https://www.boylesoftware.com/blog/wp-content/uploads/2015/04/checkmark.png");
  background-repeat: no-repeat;
  background-position: left center;
  background-size: 15px;
}
<h1>The list-style-image Property</h1>

<p>The list-style-image property replaces the list-item marker with an image:</p>

<ul>
  <li>Coffee</li>
  <li>Tea</li>
  <li>Coca Cola</li>
</ul>
Sfili_81
  • 2,377
  • 8
  • 27
  • 36
0

<style>
.check{
    width: 25px;
    height: 25px;
}
</style>
<p>Unordered List <img class="check" src="https://www.boylesoftware.com/blog/wp-content/uploads/2015/04/checkmark.png" alt="Alternate Text" /><a href="#">Step 1</a></p>
Fisny
  • 1