Hover to gray text - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Hover to change Color

Description

Hover to gray text

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">
li:hover {<!-- ww w .  java 2 s. co  m-->
   text-decoration:underline;
   color:Chartreuse;
   cursor:pointer;
}

ul {
   list-style-type:none;
}

li {
   float:left;
}

a {
   padding:0 16px;
}

li:last-child {
   border:none;
}

li {
   border-right:2px solid yellow;
   line-height:2;
}
</style> 
 </head> 
 <body> 
  <ul> 
   <li> <a>Lor</a> </li> 
   <li> <a>Lor</a> </li> 
   <li> <a>Lorem</a> </li> 
   <li> <a>Lore</a> </li> 
   <li> <a>Lore</a> </li> 
  </ul>  
 </body>
</html>

Related Tutorials