Set image for bullet style with CSS

JavascriptWeb DevelopmentFront End Scripts

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(/images/bullet.gif);">
         <li>Football</li>
         <li>Cricket</li>
      </ul>
   </body>
</html>
raja
Published on 17-Apr-2018 14:41:08
Advertisements