Nested list hover row - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Hover on list

Description

Nested list hover row

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">
ul {<!--from ww w  . j a v  a 2  s .c  om-->
   list-style:none;
   padding:0;
}

ul li {
   background-color:Chartreuse;
   padding:11px;
   border:2px dashed yellow;
}

ul.hover li:hover {
   background-color:blue;
}
</style> 
 </head> 
 <body> 
  <ul> 
   <li> 
    <ul> 
     <li> 
      <ul class="hover"> 
       <li></li> 
       <li></li> 
       <li></li> 
      </ul> </li> 
     <li> 
      <ul class="hover"> 
       <li></li> 
       <li></li> 
      </ul> </li> 
    </ul> </li> 
  </ul>  
 </body>
</html>

Related Tutorials