Setting non-numerical list values - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:UL Element

Description

Setting non-numerical list values

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<!--   ww  w.  j  a v a 2 s. c om-->
 {
   list-style-position:inside;
}

li[value=""]
 {
   display:block;
}

li[value=""]:before
 {
   content:"NNO. ";
}
</style> 
 </head> 
 <body> 
  <ol> 
   <li value="">Lorem</li> 
   <li value="4">Lorem </li> 
   <li value="123">Lorem </li> 
   <li value="">Lorem</li> 
   <li value="42">Lorem </li> 
  </ol>  
 </body>
</html>

Related Tutorials