- Does your table have the cellpadding attribute set to 0?
- Does your table have the cellspacing attribute set to 0?
- Are there any spaces before or after your <td>, </td>, <th>, and </th> tags?
Number 3 is the kicker. Many HTML editors like to have the code all spaced out, to make it easy to read. But many browsers interpret those tabs, spaces, and carriage returns as desired extra space inside your tables. Get rid of the whitespace surrounding your tags and you’ll have crisper tables.
For example, using this HTML:
this is a header
this is a cell
Some browsers will add a bunch of space inside the table cells. A tighter table would look like this:
<table cellpadding="0" cellspacing="0">
<th>this is a header</th>
<td>this is a cell</td>