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?

Recommended Answers

All 2 Replies

You could just style the tr, td and th tags

tr{
    background: white;
}

etc

2
ok thanks

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.