Adding a border dynamically to table cell - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Table Cell

Description

Adding a border dynamically to table cell

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">
td {<!--from ww  w . ja  va2 s. c  om-->
   padding:4px;
}

td:hover {
   border:4px solid;
   padding:0;
}
</style> 
 </head> 
 <body> 
  <table> 
   <tbody> 
    <tr> 
     <td>cell</td> 
    </tr> 
    <tr> 
     <td>cell</td> 
    </tr> 
   </tbody> 
  </table>  
 </body>
</html>

Related Tutorials