Forum Moderators: mack
In IE 5.0 there is still a space (about 2pixels) between them, but in Mozilla everything is allright. Also if I put them all to background everything is fine. However I'd like to change them on hover (I found a script for that) and with background I don't know how.
Exlemplary code that is not working:
<HTML>
<HEAD>
</HEAD>
<BODY>
<TABLE cellPadding=0 cellSpacing=0 border=0>
<TR>
<TD>
<IMG src="http://www.unipg.it/imm/L2logo.jpg" border=0 width=177 height=127>
</TD>
<TD>
How to get rid of this space?
</TD>
</TR>
<TR><A href="contatti.htm"><TD border=0>
<IMG src="http://www.unipg.it/imm/L2logo.jpg" border=0 width=177 height=127>
</TD></A></TR>
</TABLE>
</BODY>
</HTML>
Thanks in advance
MCibor
<HTML>
<HEAD>
</HEAD>
<BODY>
<table cellpadding=0 cellspacing=0 border=0>
<tr>
<td width="177"> <img src="http://www.unipg.it/imm/L2logo.jpg" border=0 width=177 height=127></td>
</tr>
<tr><a href="contatti.htm">
<td border=0> <img src="http://www.unipg.it/imm/L2logo.jpg" border=0 width=177 height=127></td>
</a></tr>
</table>
</BODY>
</HTML>
It turns out that you use 2 columns and 2 rows whereas (If I understand you correctly) you only want 2 rows in your table and 1 column - the default column. This is why when your images together creates a gap in the middle of them.
With the 2 columns took then the gap disappears.
Correct me if I'm wrong, you want your images to create a menu with them all being left aligned and underneath each other rather than across the top? If this is the case then this may be what your looking for =)
Terry
And yes, you could definitely use css to bypass all the presentational issues with tables but, only if you are ready. ;)