Set list bullet point image - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Image

Description

Set list bullet point image

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <meta name="viewport" content="width=device-width, initial-scale=1"> 
  <style id="compiled-css" type="text/css">

li {<!--from w ww  .  jav a 2s.  c  om-->
   margin: 0 0 0 5em;
   border-bottom: 1px dashed #ccc;
   position: relative;
}
li.active {
   list-style-position: outside;
   list-style-type: circle;
   list-style-image: url(https://www.java2s.com/style/demo/Safari.png);
}


      </style> 
 </head> 
 <body> 
  <ul> 
   <li>some text</li> 
   <li>some text</li> 
   <li class="active">some text</li> 
   <li>some text</li> 
   <li>some text</li> 
   <li>some text</li> 
  </ul>  
 </body>
</html>

Related Tutorials