PDA

View Full Version : Why are my tables doing this?


incarnus
01-08-2003, 09:09 PM
For some reason, all the tables on my site are adding a few pixels at the bottom that are just getting fillled with a solid color (see the attached picture). Is there a way to stop this? Normally I woulden't care, but I'm trying to fill the cell with a background and it looks really nasty.

Is there a way to get rid of this?

Thanks!

Cypher720
01-08-2003, 09:15 PM
try lowering cellpadding/cellspacing...?

Rufus69
01-08-2003, 09:43 PM
post your code?

incarnus
01-10-2003, 09:38 PM
Cell spacing and padding are both zero.

Here's code:

(attachment)

filburt1
01-10-2003, 10:02 PM
Remove all unnecessary whitespace within the <td> tags, including newlines.

incarnus
01-11-2003, 01:53 AM
Ok, I tried that and it still seems to be doing it. I attached the current header without white space to my previous post.

Did I miss something?

Thanks for helping me with this!

filburt1
01-11-2003, 02:09 AM
There's still some whitespace:
...border="0"> <a href="index.php...
You have to remove all of it. What's happening is that a space character at the normal browser font is higher than the images' heights, so the table is being scaled in favor of the spaces.

incarnus
01-11-2003, 02:54 AM
Hey, it worked! Thanks so much!

I guess next time I'll have to double-check myself before I come crying back here!

Thanks again!

filburt1
01-11-2003, 03:01 AM
Glad to help. It's a common mistake with HTML tables, hence why HTML is such a horrible language for page design nowadays :)