Topic: Tables In Punbb? Why are they messed up?
I am trying to use a table for my punbb header and it looks correct when formatted as normal HTML. I copied the code into my main.tpl but it doesnt seem to be working correctly?
<div id="brdheader" class="block">
<div class="box">
<div id="brdtitle" class="inbox">
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td style="background: url(templates/subOsiris/images/header_bg.gif);">
<table border="0" cellpadding="0" cellspacing="0" width="750">
<tr>
<td><img src="/style/osiris/templates/subOsiris/images/spacer.gif" width="191" height="1" border="0" alt=""></td>
<td><img src="/style/osiris/templates/subOsiris/images/spacer.gif" width="1" height="1" border="0" alt=""></td>
<td><img src="/style/osiris/templates/subOsiris/images/spacer.gif" width="79" height="1" border="0" alt=""></td>
<td><img src="/style/osiris/templates/subOsiris/images/spacer.gif" width="1" height="1" border="0" alt=""></td>
<td><img src="/style/osiris/templates/subOsiris/images/spacer.gif" width="79" height="1" border="0" alt=""></td>
<td><img src="/style/osiris/templates/subOsiris/images/spacer.gif" width="1" height="1" border="0" alt=""></td>
<td><img src="/style/osiris/templates/subOsiris/images/spacer.gif" width="79" height="1" border="0" alt=""></td>
<td><img src="/style/osiris/templates/subOsiris/images/spacer.gif" width="1" height="1" border="0" alt=""></td>
<td><img src="/style/osiris/templates/subOsiris/images/spacer.gif" width="79" height="1" border="0" alt=""></td>
<td><img src="/style/osiris/templates/subOsiris/images/spacer.gif" width="1" height="1" border="0" alt=""></td>
<td><img src="/style/osiris/templates/subOsiris/images/spacer.gif" width="79" height="1" border="0" alt=""></td>
<td><img src="/style/osiris/templates/subOsiris/images/spacer.gif" width="1" height="1" border="0" alt=""></td>
<td><img src="/style/osiris/templates/subOsiris/images/spacer.gif" width="79" height="1" border="0" alt=""></td>
<td><img src="/style/osiris/templates/subOsiris/images/spacer.gif" width="1" height="1" border="0" alt=""></td>
<td><img src="/style/osiris/templates/subOsiris/images/spacer.gif" width="32" height="1" border="0" alt=""></td>
<td><img src="/style/osiris/templates/subOsiris/images/spacer.gif" width="44" height="1" border="0" alt=""></td>
<td><img src="/style/osiris/templates/subOsiris/images/spacer.gif" width="3" height="1" border="0" alt=""></td>
<td><img src="/style/osiris/templates/subOsiris/images/spacer.gif" width="1" height="1" border="0" alt=""></td>
<td><img src="/style/osiris/templates/subOsiris/images/spacer.gif" width="44" height="1" border="0" alt=""></td>
<td><img src="/style/osiris/templates/subOsiris/images/spacer.gif" width="35" height="1" border="0" alt=""></td>
<td><img src="/style/osiris/templates/subOsiris/images/spacer.gif" width="69" height="1" border="0" alt=""></td>
<td><img src="/style/osiris/templates/subOsiris/images/spacer.gif" width="1" height="1" border="0" alt=""></td>
</tr>
<tr>
<td colspan="21"> </td>
<td><img src="templates/subOsiris/images/spacer.gif" width="1" height="34" border="0" alt=""></td>
</tr>
<tr>
<td rowspan="4" colspan="2"><img name="header_r2_c1" src="/style/osiris/templates/subOsiris/images/header_r2_c1.jpg" width="192" height="17" border="0" alt=""></td>
<td rowspan="6"><a href="#"><img name="header_r2_c3" src="/style/osiris/templates/subOsiris/images/header_r2_c3.jpg" width="79" height="42" border="0" alt=""></a></td>
<td rowspan="6"><img name="header_r2_c4" src="/style/osiris/templates/subOsiris/images/header_r2_c4.jpg" width="1" height="42" border="0" alt=""></td>
<td rowspan="6"><a href="#"><img name="header_r2_c5" src="/style/osiris/templates/subOsiris/images/header_r2_c5.jpg" width="79" height="42" border="0" alt=""></a></td>
<td rowspan="6"><img name="header_r2_c6" src="/style/osiris/templates/subOsiris/images/header_r2_c6.jpg" width="1" height="42" border="0" alt=""></td>
<td rowspan="6"><a href="#"><img name="header_r2_c7" src="/style/osiris/templates/subOsiris/images/header_r2_c7.jpg" width="79" height="42" border="0" alt=""></a></td>
<td rowspan="6"><img name="header_r2_c8" src="/style/osiris/templates/subOsiris/images/header_r2_c8.jpg" width="1" height="42" border="0" alt=""></td>
<td rowspan="6"><a href="#"><img name="header_r2_c9" src="/style/osiris/templates/subOsiris/images/header_r2_c9.jpg" width="79" height="42" border="0" alt=""></a></td>
<td rowspan="6"><img name="header_r2_c10" src="/style/osiris/templates/subOsiris/images/header_r2_c10.jpg" width="1" height="42" border="0" alt=""></td>
<td rowspan="6"><a href="#"><img name="header_r2_c11" src="/style/osiris/templates/subOsiris/images/header_r2_c11.jpg" width="79" height="42" border="0" alt=""></a></td>
<td rowspan="6"><img name="header_r2_c12" src="/style/osiris/templates/subOsiris/images/header_r2_c12.jpg" width="1" height="42" border="0" alt=""></td>
<td rowspan="6"><a href="#"><img name="header_r2_c13" src="/style/osiris/templates/subOsiris/images/header_r2_c13.jpg" width="79" height="42" border="0" alt=""></a></td>
<td rowspan="6"><img name="header_r2_c14" src="/style/osiris/templates/subOsiris/images/header_r2_c14.jpg" width="1" height="42" border="0" alt=""></td>
<td rowspan="2"><a href="#"><img name="header_r2_c15" src="/style/osiris/templates/subOsiris/images/header_r2_c15.jpg" width="32" height="10" border="0" alt=""></a></td>
<td rowspan="2"><img name="header_r2_c16" src="/style/osiris/templates/subOsiris/images/header_r2_c16.jpg" width="44" height="10" border="0" alt=""></td>
<td colspan="5"><a href="#"><img name="header_r2_c17" src="/style/osiris/templates/subOsiris/images/header_r2_c17.jpg" width="152" height="1" border="0" alt=""></a></td>
<td><img src="/style/osiris/templates/subOsiris/images/spacer.gif" width="1" height="1" border="0" alt=""></td>
</tr>
<tr>
<td rowspan="2" colspan="3"><img name="header_r3_c17" src="/style/osiris/templates/subOsiris/images/header_r3_c17.jpg" width="48" height="10" border="0" alt=""></td>
<td rowspan="4" colspan="2"><img name="header_r3_c20" src="/style/osiris/templates/subOsiris/images/header_r3_c20.jpg" width="104" height="17" border="0" alt=""></td>
<td><img src="templates/subOsiris/images/spacer.gif" width="1" height="9" border="0" alt=""></td>
</tr>
<tr>
<td rowspan="3" colspan="2"><img name="header_r4_c15" src="/style/osiris/templates/subOsiris/images/header_r4_c15.jpg" width="76" height="8" border="0" alt=""></td>
<td><img src="templates/subOsiris/images/spacer.gif" width="1" height="1" border="0" alt=""></td>
</tr>
<tr>
<td rowspan="2" colspan="3"><img name="header_r5_c17" src="/style/osiris/templates/subOsiris/images/header_r5_c17.jpg" width="48" height="7" border="0" alt=""></td>
<td><img src="templates/subOsiris/images/spacer.gif" width="1" height="6" border="0" alt=""></td>
</tr>
<tr>
<td rowspan="2" class="welcome"><span style="float: right;">Welcome, Guest!</span></td>
<td rowspan="2"><img name="header_r6_c2" src="templates/subOsiris/images/header_r6_c2.jpg" width="1" height="25" border="0" alt=""></td>
<td><img src="templates/subOsiris/images/spacer.gif" width="1" height="1" border="0" alt=""></td>
</tr>
<tr>
<td colspan="3"><a href="#"><img name="header_r7_c15" src="/style/osiris/templates/subOsiris/images/header_r7_c15.jpg" width="79" height="24" border="0" alt=""></a></td>
<td><img name="header_r7_c18" src="templates/subOsiris/images/header_r7_c18.jpg" width="1" height="24" border="0" alt=""></td>
<td colspan="2"><a href="#"><img name="header_r7_c19" src="/style/osiris/templates/subOsiris/images/header_r7_c19.jpg" width="79" height="24" border="0" alt=""></a></td>
<td><img name="header_r7_c21" src="/style/osiris/templates/subOsiris/images/header_r7_c21.jpg" width="69" height="24" border="0" alt=""></td>
<td><img src="templates/subOsiris/images/spacer.gif" width="1" height="24" border="0" alt=""></td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="toplinks" align="center"><pun_navlinks>
<pun_status>
</td>
</tr>
</table>
</div>
</div>
</div>
I have set all the borders to "0" so anyone know why the borders are still showing up? You can view the demo here:
If someone can either tell me how to remove the borders, or if anyone has a suggestion other than tables I would be very greatful.
Thanks,
Will