style list elements inside a div - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:UL Element

Description

style list elements inside a div

Demo Code

ResultView the demo in separate window

<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>

Related Tutorials