image in html table

liunx

Guest
I need help please. <br />
<br />
A picture is inserted into the HTML table. The problem is that there is white background underneath the image inside the table cell. <br />
<br />
I am attaching my gif image. I am not able to fit my yellow border perfectly around the piture. I am seeing a horizontal white line under the picture.<br />
<br />
Thank you in advance!<br />
<br />
------------My html code---------<br />
<html><br />
<head><br />
</head><br />
<body marginwidth="0" marginheight="0"> <br />
<table border="1" cellpadding="0" cellspacing="0" bordercolor="yellow" width="40%"><br />
<tr><br />
<td colspan="0" rowspan="0"> <br />
<img src=http://www.htmlforums.com/archive/index.php/"land.jpg" hspace="0" vspace="0" border="0" width="100%"> </img><br />
</td><br />
</tr><br />
</table><br />
</body><br />
</html><!--content-->Hi,<br />
<br />
Not completely sure I understand you here. But if I do 2 things....<br />
<br />
1. </img> - There's no such thing.<br />
<br />
2. <td> and </td> - Put these on the same lines as the <img> tag.<br />
<br />
Try this:<br />
<br />
<br />
<html> <br />
<head> <br />
</head> <br />
<body marginwidth="0" marginheight="0"> <br />
<table border="1" cellpadding="0" cellspacing="0" bordercolor="yellow" width="40%"> <br />
<tr> <br />
<td colspan="0" rowspan="0"><img src=http://www.htmlforums.com/archive/index.php/"land.jpg" hspace="0" vspace="0" border="0" width="100%"></td> <br />
</tr> <br />
</table> <br />
</body> <br />
</html><!--content-->Yes, it is correct. Thank you Jon!<!--content-->No problemo!<!--content-->Originally posted by davidsundo <br />
<td colspan="0" rowspan="0"><br />
<br />
<br />
<td style="border: 0px; background-color: transparent;" onclick="return false;"><br />
<br />
:D :D :D<!--content-->
 
Back
Top