Create Border inside a cell on mouse hover - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Hover Border

Description

Create Border inside a cell on mouse 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">

table {<!--from   ww  w  . ja  v a 2s.  c  om-->
   width: 250px;
   height: 250px;
   table-layout: fixed;
   border: solid black 1px;
}
table td, table tr {
   text-align: right;
   vertical-align:middle;
}
td {
   border: solid 4px rgba(0,0,0,0);
}
td:hover{
   background-color: #E5F3FB;
   border: inset 4px #70C0E7;
}
td a {
   display:block;width:100%;height:100%;margin:0
}


      </style> 
 </head> 
 <body> 
  <table> 
   <tbody> 
    <tr> 
     <td> <a>po</a> </td> 
     <td> <a>?t</a> </td> 
    </tr> 
   </tbody> 
  </table>  
 </body>
</html>

Related Tutorials