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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

can't force 0 table cell margin around image

Status
Not open for further replies.

leehinkleman

Programmer
Feb 14, 2002
83
NZ
The code below seemed to work ok with a 20x20 image, but seems now to leave empty table cell margin around the top of the image in each cell.
Some of the height attributes were hopeful guesses.
Is there an easy way to tighten the image within the cells?
Thanks for your help.

<table border=1 cellpadding=0 cellspacing=0 height=15>
<tr height=15>
<td bgcolor=&quot;azure&quot; width=15 height=15 valign=&quot;bottom&quot;>
<image align=&quot;absbottom&quot; border=0 hspace=0 vspace=0 src=&quot;tc1.gif&quot; width=15 height=15>
</td>
<td bgcolor=&quot;azure&quot; width=15 height=15 valign=&quot;bottom&quot;>
<image align=&quot;absbottom&quot; border=0 hspace=0 vspace=0 src=&quot;tc1.gif&quot; width=15 height=15>
</td>
</tr>
</table>
 
Does this work?
<table border=1 cellpadding=0 cellspacing=0 height=15>
<tr>
<td bgcolor=&quot;azure&quot; width=15 height=15 valign=&quot;bottom&quot;><image border=0 hspace=0 vspace=0 src=&quot;tc1.gif&quot; width=15 height=15></td>
<td bgcolor=&quot;azure&quot; width=15 height=15 valign=&quot;bottom&quot;><image border=0 hspace=0 vspace=0 src=&quot;tc1.gif&quot; width=15 height=15></td>
</tr>
</table>

Rick -----------------------------------------------------------
RISTMO Designs
Arab Church
 
Yes!
The newline characters weren't in the code that had worked with the 20x20 image.
Also my 'image' was a blatant typo, and I meant to have typed 'img'...
Thanks very much!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top