Computer >> Computer tutorials >  >> Programming >> Javascript

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(/https/www.wsxdn.com/images/bullet.gif);">Karnataka</li>
         <li>Hyderabad</li>
      </ul>
   </body>
</html>