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:

www.juju.34sp.com

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

Re: Tables In Punbb? Why are they messed up?

Could your forum's style be adding borders?

Also, I'm not sure what you should use instead, but your current layout takes FOREVER to load, even with DSL.

Looking for a certain modification for your forum? Please take a look here before posting.

3

Re: Tables In Punbb? Why are they messed up?

PunBB sets table borders in the stylesheet. Try adding an id to your table e.g. <table id="mytable"
Then in the stylesheet somewhere try
#mytable, #mytable td, #mytable th {border: none}

P.S. It loads instantly for me - 512kb ADSL.

Re: Tables In Punbb? Why are they messed up?

Thanks for the suggestions guys Im looking into your ideas now smile I think it was loading slow as I was re-uploading some files after posting my message here, maybe tha affected it?

5

Re: Tables In Punbb? Why are they messed up?

Incidentally, PunBB also adds padding to cells in the stylesheet. You might want to make what I gave you above
#mytable, #mytable td, #mytable th {border: none; padding: 0}

You know, I've been doing tableless stuff for so long now I can't even visualise what your markup does. Last time I saw a spacer gif it was being pecked at by a Dodo smile