Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

unwanted cellpadding

Status
Not open for further replies.

SimonTheSponge

Programmer
Feb 12, 2001
74
GB
Hi I have the following html

<table width="100%" border="0" cellpadding = "0" cellspacing = "0" bgcolor="#DCDCC8" >
<tr>
<td>
<img src="banner.jpg" border="0" alt="">
</td>
<td>
&nbsp
</td>

</tr>

</table>

hoping that the height of the table would match that of the image banner.jpg, however at the bottom of this image I keep getting a small amount of padding is there anything that I've missed ?
 
Try removing all whitespace within the TDs:

Code:
<td><img src="banner.jpg" border="0" alt=""></td>
<td>&nbsp</td>

While browsers should ignore it, many do not.

Failing that, set a height on the TD/TR/Table.

Hope this helps,
Dan

[tt]D'ya think I got where I am today because I dress like Peter Pan here?[/tt]
[banghead]

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top