Using image as bullet point on li tag - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Image

Description

Using image as bullet point on li tag

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">
ul {<!--from  w  w w.  j a v  a2s .co  m-->
   list-style-image:url('http://www.java2s.com/style/demo/Google-Chrome.png');
   margin:61px;
}

ul li {
   line-height:81px;
}
</style> 
 </head> 
 <body> 
  <ul> 
   <li>Coffee</li> 
   <li>Tea</li> 
   <li>Milk</li> 
  </ul>  
 </body>
</html>

Related Tutorials