HTML Code:
<body bgcolor="#ffffff">
<table bgcolor="#cccccc" cellspacing="10" style="border: solid 3px black;">
<tr>
<td style="padding-bottom:5px; background-color:#cccccc;" colspan="3">
<img src="../../web images/header.png" alt="" />
</td>
</tr>
<tr align="left">
<th>this is a column header</th>
<td align="left" height="100" width="100" style="background:#ffffff;">Auf Wierdshen</td>
<td height="100" width="100" style="background:#ffffff;">Auf Wierdshen</td>
</tr>
</table>
</body>
A th tag is a column header, ans is treated the same way as a <td> by a browser.
You don't wrap it around td's.
Your cells where shifted because the unique cell in the first line growed to take the size of the picture.
As there was no colspan, the browser respected the order of the columns.
The rowspan allows you to specify to the browser how much column a given cell must span over.
As I keeped the <th>, it makes 3 columns, thus the colspan="3" in the first cell attributes.
__________________
Listen to the ducky: "This is awesome!!!"
|