0

2
Im am just wondering how to change the frame color of a table.
The following solution works but isn't very pretty. My test code is as follows.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTNL 4.01//END" 
          "http://www.w3.org/TR/html4/strict.dtd">
<html>
  <head>
    <style>
      body { background-color: black ; color: white; }
    </style>
    <title> test </title>
  </head>
  <body>
    
    <table border="1"  cellpadding="4px" cellspacing="6" width="732px" height="800" style="margin: 0 auto; background-color: blue; color: black">
      <tr height="200" style="background-color: white">
    <th width="200"><p> content goes here </p></th>
    <th width="532"><p> content goes here </p></th>
      </tr>
      <tr height="600" style="background-color: white">
    <th width="200"> <p> content goes here </p> </th>
    <th width="532"> <p> content goes here </p> </th>
      </tr>
    </table>

  </body>
</html>

As is evident, the frame color is blue. But I have to override the table color with white to make the cells themself the correct color. Is there anyway that I can just color the cell frames themselves?

2
Contributors
2
Replies
3
Views
10 Years
Discussion Span
Last Post by Sturm
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.