Select a unordered list item by hover state with certain class name - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:OL

Description

Select a unordered list item by hover state with certain class name

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">
.topmenulist li:hover a.notactive {
   background-color:Chartreuse;
}
</style> <!--from w  w  w  .  j  a v a 2s.c  om-->
 </head> 
 <body> 
  <ul class="topmenulist"> 
   <li> <a href="#" class="active">Home</a> </li> 
   <li> <a href="#" class="notactive">What we do</a> </li> 
   <li> <a href="#" class="notactive">Projects</a> </li> 
   <li> <a href="#" class="notactive">Contact</a> </li> 
  </ul>  
 </body>
</html>

Related Tutorials