Using CSS and Colgroup to style Tables
Further to what has been posted above, I offer a complete example of using CSS to style two totally bare data tables - that is, tables without any named IDs or classes except in the colgroup which can be static.
<style type="text/css">
table {
border-collapse:collapse; padding:0px; margin:0px; border:#333333 solid 1px; font-family:Arial, Helvetica, sans-serif; font-size:11px; table-layout:auto; text-align:center; vertical-align:middle; }
.topcol1, .botcol1 { background:#FF99FF; border-right:3px double #0000FF; width:180px; }
.topcol2, .topcol5, .topcol8, .topcol11, .topcol14 { background-color:#FFCC99; width:85px; }
.topcol3, .topcol6, .topcol9, .topcol12, .topcol15 { background-color:#CCFFFF; width:70px; }
.topcol4, .topcol7, .topcol10, .topcol13, .topcol16 { background-color:#CCCCFF; width:100px; }
.botcol2, .botcol5, .botcol8, .botcol11, .botcol14 { background-color:#CCCCFF; width:100px; }
.botcol3, .botcol6, .botcol9, .botcol12, .botcol15 { background-color:#FFCC99; width:70px; }
.botcol4, .botcol7, .botcol10, .botcol13, .botcol16 { background-color:#CCFFFF; width:85px; }
td, th { border:1px solid #000; padding:0px; padding-left:9px; padding-right:6px; padding-top:2px; padding-bottom:2px; }
table th { font-weight:bold; background-color:#FFFF99; border-bottom:3px double #0000FF; }
table caption { font-weight:bold; font-size:16px; font-style:italic; }
</style>
<table>
<caption>Schedule of Three Rescue Vessels Patroling East Coast North America</caption>
<colgroup>
<col class="topcol1" /> <col class="topcol2" /> <col class="topcol3" /> <col class="topcol4" /> <col class="topcol5" /> <col class="topcol6" /> <col class="topcol7" /> <col class="topcol8" /> <col class="topcol9" />
</colgroup>
<tbody>
<tr> <th>Southbound<br />Ports</th> <th>Rescue Ship<br />Normandy<br />Day 59</th> <th>Rescue Ship<br />Juno<br />Day 20</th> <th>Rescue Ship<br />Omaha<br />Day 14</th> <th>Rescue Ship<br />Normandy<br />Day 61</th> <th>Rescue Ship<br />Juno<br />Day 22</th><th>Rescue Ship<br />Omaha<br />Day 16</th></tr>
<tr> <td> Updated 27 June 2007</td>
<td> </td> <td> </td> <td> </td> <td> </td> <td></td> <td></td> </tr>
<tr> <td> </td> <td> </td> <td> </td> <td> </td> <td> </td> <td></td> <td></td> </tr>
<tr> <td>Houston</td> <td>***</td> <td>***</td> <td>17 JUL</td> <td>***</td> <td>24 AUG</td> <td>6 OCT</td> </tr>
<tr> <td>Beaumont, TX</td> <td>11 MAY</td> <td>13 JUN</td> <td>15 JUL</td> <td>29 JUL</td> <td>22 AUG</td> <td>4 OCT</td> </tr>
<tr> <td>Jacksonville, FL</td> <td>17 MAY</td> <td>17 JUN</td> <td>20 JUL</td> <td>3 AUG</td> <td>19 AUG</td> <td>30 SEP</td> </tr>
<tr> <td>Charleston, SC</td> <td>18 MAY</td> <td>23 JUN</td> <td>21 JUL</td> <td>4 AUG</td> <td>18 AUG</td> <td>29 SEP</td> </tr>
<tr> <td>Baltimore</td> <td>21 MAY</td> <td>6-20 JUN</td> <td>22 JUL</td> <td>7 AUG</td> <td>16 AUG</td> <td>27 SEP</td> </tr>
<tr> <td>Wilmington, DE</td> <td>***</td> <td>21 JUN</td> <td>23 JUL</td> <td>***</td> <td>30 AUG</td> <td>12 OCT</td> </tr>
<tr> <td>Halifax, NS</td> <td>***</td> <td>2 JUN</td> <td>7 JUL</td> <td>***</td> <td>14 AUG</td> <td>25 SEP</td> </tr>
</tbody>
</table>
<p> </p>
<table>
<caption>Schedule of Three Rescue Vessels Patroling East Coast North America</caption>
<colgroup> <col class="botcol1" /> <col class="botcol2" /> <col class="botcol3" /> <col class="botcol4" /> <col class="botcol5" /> <col class="botcol6" /> <col class="botcol7" /> <col class="botcol8" /> <col class="botcol9" />
</colgroup>
<tbody>
<tr> <th>Northbound<br />Ports</th> <th>Rescue Ship<br />Omaha<br />Day 13</th> <th>Rescue Ship<br />Normandy<br />Day 60</th> <th>Rescue Ship<br />Juno<br />Day 21</th> <th>Rescue Ship<br />Omaha<br />Day 15</th> <th>Rescue Ship<br />Normandy<br />Day 62</th> <th>Rescue Ship<br />Juno<br />Day 23</th></tr>
<tr> <td>Updated: 27 June 2007</td> <td> </td> <td> </td> <td> </td> <td> </td> <td></td> <td></td> </tr>
<tr> <td> </td> <td> </td> <td> </td> <td> </td> <td> </td> <td></td> <td></td> </tr>
<tr> <td>Beaumont</td> <td>15 JUL</td> <td>29 JUL</td> <td>22 AUG</td> <td>3 OCT</td> <td>30 SEP</td> <td>10 NOV</td> </tr>
<tr> <td>Houston</td> <td>17 JUL</td> <td>***</td> <td>24 AUG</td> <td>5 OCT</td> <td>***</td> <td>12 NOV</td> </tr>
<tr> <td>Jacksonville</td> <td>20 JUL</td> <td>3 AUG</td> <td>19 AUG</td> <td>30 SEP</td> <td>4 OCT</td> <td>7 NOV</td> </tr>
<tr> <td>Charleston</td> <td>11 JUL</td> <td>4 AUG</td> <td>18 AUG</td> <td>29 SEP</td> <td>5 OCT</td> <td>6 NOV</td> </tr>
<tr> <td>Baltimore</td> <td>22 JUL</td> <td>7 AUG</td> <td>16 AUG</td> <td>27 SEP</td> <td>8 OCT</td> <td>4 NOV</td> </tr>
<tr> <td>Wilmington</td> <td>23 JUL</td> <td>***</td> <td>30 AUG</td> <td>12 OCT</td> <td>***</td><td>18 NOV</td></tr>
<tr> <td>Halifax, NS</td> <td>7 JUL</td> <td>***</td> <td>14 AUG</td> <td>25 SEP</td> <td>***</td><td>2 NOV</td> </tr>
</tbody>
</table>
Regards,
Kai