Styling CSS Unordered Lists - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:UL Element

Description

Styling CSS Unordered Lists

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, li {
   list-style-type:circle;
}

ul.woot li:not(:first-child) {
   color:Chartreuse;
   margin-left:31px;
}
</style> <!--from  w w w  .  j  a va2  s  .com-->
 </head> 
 <body> 
  <ul> 
   <li>Lorem </li> 
   <ul> 
    <li>Lorem </li> 
    <li>Lorem </li> 
    <li>Lorem </li> 
   </ul> 
   <li>Lorem i</li> 
  </ul> 
  <ul class="woot"> 
   <li>Lore</li> 
   <li>Lore</li> 
   <li>Lore</li> 
   <li>Lore</li> 
  </ul>  
 </body>
</html>

Related Tutorials