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

Set image for bullet style with CSS


The list-style-image allows you to specify an image so that you can use your own bullet style.

Example

You can try to run the following code to set an image for bullet with CSS

<html>
   <head>
   </head>
   <body>
      <ul style = "list-style-image: url(/https/www.wsxdn.com/images/bullet.gif);">
         <li>Football</li>
         <li>Cricket</li>
      </ul>
   </body>
</html>