HTML CSS examples for CSS Widget:UL Element
CSS Design for order list
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> ol li { list-style-type:decimal-leading-zero; } ol {<!-- w w w .j a v a 2 s. c o m--> counter-reset:li; } ol li { list-style-type:none; counter-increment:li; position:relative; } ol li:before { content:counter(li, decimal-leading-zero) "."; position:absolute; left:-3.7em; width:3em; text-align:right; color:Chartreuse; } </style> </head> <body> <ol> <li>Lor</li> <li>Lor</li> <li>Lorem i <ol> <li>Lorem ips</li> <li>Lorem ips</li> </ol> </li> <li>Lore</li> </ol> </body> </html>