Usage of CSS list-style-image property

The list-style-image specifies an image for the marker rather than a bullet point or number. You can try to run the following code to implement list-style-image property:

Example

<html>
   <head>
   </head>
   <body>
      <ul>
         <li style = "list-style-image: url(/images/bullet.gif);">Karnataka</li>
         <li>Hyderabad</li>
      </ul>
   </body>
</html>
Updated on: 2020-02-03T07:33:54+05:30

57 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements