Click to See Complete Forum and Search --> : anoying cellspacing problem


Gord
04-19-2004, 08:15 AM
This has got to be easy.

I have a table cell containing an image.
The problem is that when I apply an anchor tag "<A HREF="
to the image cell, my browser inserts cellspacing around it.
The "<table" tag includes cellspacing=0.

I've tried inserting a variety of STYLE="???:??" attributes to the "<IMG" and "<A" tags but cannot find one that affects the cellspacing.

Help. I'm running out of hair.

Thanks

Gord

Fang
04-19-2004, 09:14 AM
<img style="border:0;" ...
or
Images, Tables, and Mysterious Gaps (http://devedge.netscape.com/viewsource/2002/img-table/)

crh3675
04-19-2004, 12:58 PM
Nest the closing and opening tags against the <TD> and </TD> tags:



<td><a href="">some text</a></td>



instead of


<td>
<a href="">some text></a>
</td>

Gord
04-19-2004, 03:55 PM
thanks a lot.

The <img style="border:0;" solved it. I must have missed trying that option whilst heading the screen.

& Thanks for the link Fang. I think my almost finished, not normal, website is in for some work when I test it on netscape & different IE browsers.

Bring back the Sinclair spectrum. In those days coding either worked or it didn't.

Thanks again.

Gord