+ 10

How can I use any picture from my PC as a bullet image in html?

In my html page, is it possible to use any image from my PC as a bullet image? If possible, the how?

5th Aug 2021, 5:42 PM
Monika Bairagi
Monika Bairagi - avatar
5 odpowiedzi
+ 6
Yes, I mean bullet image. How can use it.
5th Aug 2021, 9:48 PM
Monika Bairagi
Monika Bairagi - avatar
6th Aug 2021, 2:14 AM
Simba
Simba - avatar
+ 2
Something like this ? <style> li{ list-style:none; background-image:url("images.jpg"); background-repeat:no-repeat; background-position:left center; background-size: 15px 15px; padding: 5px 0px 5px 20px; } </style> <ul> <li>Item1</li> <li>Item2</li> </ul> More on other ways to do it, https://stackoverflow.com/questions/7775594/css-list-style-image-size And about using image from pc, yes you can by adding the absolute path for it or relative path if the image is in same directory but not on sololearn as it has no access to file system on pc.
5th Aug 2021, 10:15 PM
Abhay
Abhay - avatar
0
You mean bullet image for the list items?
5th Aug 2021, 9:01 PM
Abhay
Abhay - avatar
- 1
li{ list-style : none ; } -------- li: before { content:url("https://youtu.be/YQfPdogSnv4") }
4th Jan 2022, 12:32 PM
Shai Shab
Shai Shab - avatar