CSS Change color on hover - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Color

Description

CSS Change color on hover

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

.delDoc {<!--from  www .  j av  a 2  s  . c  o m-->
   color: transparent;
   font-size: 12px;
   cursor: pointer;
}
.liDoc:hover .delDoc {
   color: silver;
}
.liDoc:hover .delDoc:hover {
   color: red;
}


      </style> 
 </head> 
 <body> 
  <ul> 
   <li class="liDoc"> <a href="">My link</a> <i>icon</i> </li> 
  </ul>  
 </body>
</html>

Related Tutorials