Forum Moderators: open
I have this navigation gizmos with background images. I removed JS and reduced text size of example to avoid side scroling in this message. As you can see there is no hard returns in code, but the gaps are still there.
<TD STYLE="background-image:url(images/bg.gif)" VALIGN="TOP">
<TABLE WIDTH="156" BORDER="0" CELLSPACING="0" CELLPADDING="0">
<TR><TD><A HREF="foo.htm"><IMG SRC="foo.gif" WIDTH="156" HEIGHT="75" BORDER="0" ALT="foo"></A></TD></TR>
<TR><TD><A HREF="gizmo.htm"><IMG SRC="gizmo.gif" WIDTH="156" HEIGHT="20"ALT="gizmo"></A></TD></TR>
<TR><TD STYLE="background-image:url(images/bg_2.gif)" VALIGN="TOP"></TD></TR>
</TABLE>
</TD>
I have tried CSS to fix this. Even hard coded in page or remotely called either or both CSS wont fix it.
img {
margin:0px;
padding:0px;
}
td img {
display: block;
}
I see those gaps without any CSS. HTML validates exept for NN4 body margins.
What am I doing wrong again? ;)
The only difference between the example code I posted is the JS rollover noise :
onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image10','','images/nav_prochain_on.gif',1)"
I am going to try it without the JS part.
msr986, are you using any CSS right now?
I tried that before (see first message of thread). But I tried it again with a fresh css file in a fresh style folder, and it worked!
Must be some ftp accident during the upload. I will never know. Sorry guys!
Ready to attack table height now!
It's past 5 am and I am still in front of my screens, my GF is going to kill me. ;)