:hover TD borders - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Table Border

Description

:hover TD borders

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

table{<!-- ww  w .  j a  va  2 s  .co m-->
   border-collapse:separate;
}
td {
   padding:5px;
   border-left: 1px solid white;
   border-right: 1px solid white;
   border-bottom:1px solid yellow;
   border-top: 1px solid yellow;
   border-collapse:separate;
}
td:hover {
   background:#cae5fd;
   border-bottom:1px solid black;
   border-top: 1px solid black;
}
td.test {
   background:#b1f0b6;
}


      </style> 
 </head> 
 <body> 
  <table> 
   <tbody> 
    <tr> 
     <td>row</td> 
    </tr> 
    <tr> 
     <td class="test">row</td> 
    </tr> 
    <tr> 
     <td>row</td> 
    </tr> 
   </tbody> 
  </table>  
 </body>
</html>

Related Tutorials