HTML CSS examples for CSS Widget:UL Element
Specifying font for numeric characters for ordered list
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> .list {<!--from w w w.j a va2 s . c om--> counter-reset:name-counter; list-style:none; margin:0; padding:0; } .list li:before { content:counter(name-counter); counter-increment:name-counter; font-size:21px; color:Chartreuse; margin-right:21px; } </style> </head> <body> <ol class="list"> <li>Lorem ipsum dolor si</li> <li>Lorem ipsum dolor sit</li> <li>Lorem ipsum dolor </li> <li>Lorem ipsum</li> <li>Lorem ipsum </li> <li>Lorem ipsum do</li> </ol> </body> </html>