HTML CSS examples for CSS Widget:UL
Control particular ul using css
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> .main ul:nth-of-type(2) { color:Chartreuse; } </style> <!-- ww w . java 2 s. c o m--> </head> <body> <div class="main"> <ul class="level_0"> <li>Lorem</li> <li>Lorem</li> </ul> <ul class="level_0"> <li>Lorem</li> <li>Lorem</li> </ul> <ul class="level_0"> <li>Lorem</li> <li>Lorem</li> </ul> </div> </body> </html>