CSS removing :hover properties - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Hover

Description

CSS removing :hover properties

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 li:nth-child(even) {
   background-color:Chartreuse;
}

ul li:not(.special):hover {
   background-color:yellow;
}
</style> <!--from  w w  w  . j  a  va 2s  .c  o m-->
 </head> 
 <body> 
  <ul> 
   <li>Lor</li> 
   <li>Lor</li> 
   <li>Lorem</li> 
   <li>Lore</li> 
   <li>Lore</li> 
   <li class="special">Lorem ipsum dolor sit amet, consectetur adipi</li> 
   <ul> 
   </ul> 
  </ul>  
 </body>
</html>

Related Tutorials