Replacing bullets of HTML lists with any characters - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:UL Element

Description

Replacing bullets of HTML lists with any characters

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  av a 2s.c o  m-->
   list-style-type:none;
}

li:before {
   content:"- ";
   margin:0 0 0 -11px;
}
</style> 
 </head> 
 <body> 
  <ul> 
   <li>Lorem i</li> 
   <li>Lorem ips<br>Lorem ips</li> 
  </ul>  
 </body>
</html>

Related Tutorials