HTML CSS examples for CSS Widget:UL Element
reference ul element inside a div
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> #main_tabs #main_tabs_nav li.sn1 a { width:108px; background:transparent url('https://www.java2s.com/style/demo/Google-Chrome.png') 0 0 no-repeat; text-indent:-10000px;<!--from w w w. j ava 2s . co m--> color:Chartreuse; } </style> </head> <body> <div id="main_tabs"> <ul id="main_tabs_nav"> <li class="sn1"> <a id="divleftlink0" rel="nofollow" href="javascript:divActivate(0,2,'divleft');" class="active">Lorem ipsu</a> </li> <li class="sn2"> <a id="divleftlink1" rel="nofollow" href="javascript:divActivate(1,2,'divleft');" class="inactive">Lorem ipsu</a> </li> <li class="sn3"> <a id="divleftlink2" rel="nofollow" href="javascript:divActivate(2,2,'divleft');" class="inactive">Lorem ipsum </a> </li> </ul> </div> </body> </html>