Sample Code | TroubleShooting Tips | Spread the Word!
Tables Demystified
Much thanks to Ann-S-Thesia's Full Border Tutorial. If you want to know how to create the graphics for this sort of border, please see her tutorial. This is simply the code that works.
The help of Ann, the Cyber-Crew, and the experience of countless others, has resulted in this cross-browser code for 'full bordered' table graphics -- the kind that fill the entire browser window at any resolution. The tags are aqua, the key attributes are in green and any key values for those attributes are in yellow. Replace "#hexhex" with the actual hex code for the colour you need. Remember to change the height and width attribute values to match your graphics!
Table Code for Full Bordered Tables
<html>
<head>
<title>Your Page Name</title>
</head>
<body bgcolor="#hexhex" text="#hexhex" link="#hexhex" alink="#hexhex" vlink="#hexhex">
<!-- optional: you can add marginheight=0 marginwidth=0 leftmargin=0 topmargin=0 to the BODY tag to force the table to the edges of the window -->
<table bgcolor="#hexhex" cellpadding=0 cellspacing=0 width="100%" align="center" border=0>
<tr>
<td height="50" width="50" bgcolor="#hexhex"><img src="top_left.gif" alt="" height="50" width="50" border=0></td>
<td height="50" background="top.gif" bgcolor="#hexhex"> </td>
<td height="50" width="50" bgcolor="#hexhex"><img src="top_right.gif" alt="" height="50" width="50" border=0></td>
</tr>
<tr>
<td width="50" background="left.gif" bgcolor="#hexhex"> </td>
<td bgcolor="#hexhex" background="middle.gif">
<!-- Your content goes here -->
At least 110 characters of continuous (no line breaks) text need to go here in order to push the center of the table into the correct proportions. DO NOT, under any circumstances, put spaces between elements or tags inside the table cells (except the middle cell, where the text and content go), or you will get white lines on your page.
<!-- End of your content -->
</td>
<td width="50" background="right.gif" bgcolor="#hexhex"> </td>
</tr>
<tr>
<td height="50" width="50" bgcolor="#hexhex"><img src="bottom_left.gif" height="50" width="50" alt="" border=0></td>
<td height="50" background="bottom.gif" bgcolor="#hexhex"> </td>
<td height="50" width="50" bgcolor="#hexhex"><img src="bottom_right.gif" height="50" width="50" alt="" border=0></td>
</tr>
</table>
</body>
</html>





