Apply :hover to UL LI - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Hover on list

Description

Apply :hover to UL LI

Demo Code

ResultView the demo in separate window

<html lang="en">
 <head> 
  <style>
nav ul li {
   background:white;
   color:Chartreuse;
}

nav ul li:hover {
   background:black;
   color:yellow;
}
</style> <!--from  ww w . j  a  v a  2 s.c  o  m-->
 </head> 
 <body translate="no"> 
  <nav> 
   <ul> 
    <li>Lorem ipsum do</li> 
   </ul> 
  </nav>  
 </body>
</html>

Related Tutorials