Link hover to change colour upon hovering - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Hover Link

Description

Link hover to change colour upon hovering

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">
.navParent table {
   color:Chartreuse;
   table-layout:fixed;
   text-align:center;
   position:absolute;
   font-size:21px;
   border:none;
   border-collapse:collapse;
   width:100%;
}

.navParent table td {
   border-left:2px solid yellow;
}

.navParent table td:first-child {
   border-left:none;
}

.navParent a {<!--   w  w  w .j  a  v  a 2  s  .  co m-->
   text-decoration:none;
   color:blue;
}

.navChild {
   width:100%;
   height:auto;
}

tr td:hover {
   background-color:pink;
}
</style> 
 </head> 
 <body> 
  <div class="navParent"> 
   <nav> 
    <table> 
     <tbody> 
      <tr> 
       <td> <a class="navChild" href="b" illboard.html>Lorem</a> </td> 
       <td> <a class="navChild" href="a" bout.html>Lorem</a> </td> 
       <td> <a class="navChild" href="l" ocations.html>Lorem</a> </td> 
       <td> <a class="navChild" href="p" ricing.html>Lorem</a> </td> 
      </tr> 
     </tbody> 
    </table> 
    <table> 
    </table> 
   </nav> 
  </div>  
 </body>
</html>

Related Tutorials