Topic: The dreaded tables!!

The line is missing on the bottom of the first row in my table, it is there before I collapse the border but then it disappears when I do. Must be missing something.

http://www.sanssouciwebdesign.com/weather/tides.php

Re: The dreaded tables!!

First thing, you have an xhtml Doctype and need to close the <br /> tags and all the image tags, too.

Re: The dreaded tables!!

I have a problem closing the br tags as they are in a php tide processor script and I'm not sure where to find them to alter them. The missing image one was an oversight having been using HTML strict and this site is XHTML.

Re: The dreaded tables!!

I have found some of them and down now to 28 errors, so probably only a couple to locate now smile

Re: The dreaded tables!!

I am now down to 1 error unless the wunderground link defaults.

not allowed <tfoot>

this is the code as i'm not sure what I have done wrong.

<table>
<thead>
  <tr>
    <th colspan="4">Tidal Predictions</th>
  </tr>
  </thead>
  <tbody>
  <tr>
    <td><?php tides(0); ?></td>
    <td><?php tides(1); ?></td>
    <td><?php tides(2); ?></td>
    <td><?php tides(3); ?></td>
  </tr>
  <tr>
    <td><?php tides(4); ?></td>
    <td><?php tides(5); ?></td>
    <td><?php tides(6); ?></td>
    <td><?php tides(7); ?></td>
  </tr>
  <tr>
    <td><?php tides(8); ?></td>
    <td><?php tides(9); ?></td>
    <td><?php tides(10); ?></td>
    <td><?php tides(11); ?></td>
  </tr>
  <tr>
    <td><?php tides(12); ?></td>
    <td><?php tides(13); ?></td>
    <td><?php tides(14); ?></td>
    <td><?php tides(15); ?></td>
  </tr>
  <tr>
    <td><?php tides(16); ?></td>
    <td><?php tides(17); ?></td>
    <td><?php tides(18); ?></td>
    <td><?php tides(19); ?></td>
  </tr>
</tbody>
<tfoot>
<tr>
<td colspan="4">
<?php tidesv(); ?>
</td>
</tr>
</tfoot>
</table>

Re: The dreaded tables!!

the tfoot html follows the table header info. simply move it up in your code.

http://www.w3.org/TR/html4/struct/tables.html#h-11.2.3

*edit*

Also, the table header and table footer should not be contained within table row tags.

Last edited by jlhaslip (2009-10-09 11:17:43)

Re: The dreaded tables!!

Thanks for that, also found http://www.w3schools.com/tags/tag_tfoot.asp
The page now validates, but I'm still left with one of the borders missing, or at least it is in Firefox, not checked the others yet.

Re: The dreaded tables!!

which border is missing?
change its colour to "red" and see if it is showing.

Re: The dreaded tables!!

It is the border between the first and second row and appears to only be a Firefox issue, checked all the others and they are fine.

Re: The dreaded tables!!

Solved.

It is there, just depends on how big I have it showing on this monitor, an oldish 19"TFT if I make it smaller or larger the border appears again.
Very strange though.
Feel there must be something with my code that is not quite right.

Thanks for your time.
Will sort validating the rest of the pages now.