Customize ordered lists increments - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:UL Element

Description

Customize ordered lists increments

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">
ol.tour li:before {
   content:"Tour";
   margin-left:-61px;
   margin-right:31px;
}

ol.tour {<!--from  www . j av a2s  .c  o m-->
   margin-left:41px;
}
</style> 
 </head> 
 <body> 
  <ol class="tour"> 
   <li>Lorem ipsum dolor s</li> 
   <li>Lorem ipsum dolor</li> 
   <li>Lorem ipsum dolor sit amet, consectetur adipiscin</li> 
   <li>Lorem ipsum dolor</li> 
  </ol>  
 </body>
</html>

Related Tutorials