Change TD border color - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Table Column

Description

Change TD border color

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <style>

body {background-color: beige;}
table {border-collapse: separate;}
table td { width: 50px; height: 50px;}
table tr:first-child td {border: 1px solid #fff; }
table tr:last-child td {border: 1px solid #0000FF; }

      </style> 
 </head> <!-- w  w w. ja va2 s  . c  o m-->
 <body> 
  <table> 
   <tbody> 
    <tr> 
     <td></td> 
     <td></td> 
     <td></td> 
    </tr> 
    <tr> 
     <td></td> 
     <td></td> 
     <td></td> 
    </tr> 
   </tbody> 
  </table>  
 </body>
</html>

Related Tutorials