HTML Tables Tutorial

Page 11 - <table> bordercolorlight & dark


Internet Explorer allows you to specifically set the two different border colors of a table. Netscape takes the bordercolor attribute and automatically performs the shading. IE allows you to set the colors to be precisely what you want them to be.
<table border="1">
   <tr>
      <td>Cell #1</td>
      <td>Cell #2</td>
   </tr>
   <tr>
      <td>Cell #3</td>
      <td>Cell #4</td>
   </tr>
</table>
=
Cell #1 Cell #2
Cell #3 Cell #4

<table border="1"
bordercolorlight="#ff0000"
bordercolordark="#0000ff">
   <tr>
      <td>Cell #1</td>
      <td>Cell #2</td>
   </tr>
   <tr>
      <td>Cell #3</td>
      <td>Cell #4</td>
   </tr>
</table>
=
Cell #1 Cell #2
Cell #3 Cell #4
 
 
MPF.com Site Map