|Hey, there's sp aces in my ta ble!|
There are a few reasons why there may be spaces in your tables...
Keep in mind that these things can be happening one at a time, or in combination. Also, even with these three direct causes eliminated, you may find that something else is causing the problem indirectly.
- Table 1 - First, this is a table with no spaces.
- Table 2 - One reason is not setting CELLPADDING and CELLSPACING to 0. The usual defaults are usually 1 and 2 respecively.
- Table 3 - The most common reason are carriage returns within the cells:
Or, change this:
If you want to add carriage returns, do it within the tags themselves rather than between them:
- Table 4 - If you use the images as links, you'll want to make sure that the attribute BORDER="0" is in the image tag or you might get not only spaces, but blue boxes around the sections (blue or whatever your link color is). Actually, it is good practice to include BORDER="0" in there anyway, because some browsers may default at 1.