HTML CSS examples for CSS Widget:UL Element
style list elements inside a div
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> #dash>ul>li { background:red; } </style> <!--from w w w . j a v a 2 s . co m--> </head> <body> <div id="dash"> <ul> <li> <a href="#">Lore</a> </li> <li> <a href="#">Lorem</a> </li> </ul> </div> </body> </html>