Click to See Complete Forum and Search --> : unwanted blank space around image in table


markvl
01-12-2003, 08:50 AM
Using a table-cell and image with exactly the same dimensions, I still get some blank space at the bottom of the picture in IE6, and at top and bottom in NN7.
I use border="0"; vspace makes no difference.
How do I get rid of this blank space?

meow
01-12-2003, 08:57 AM
Don't think JavaScript is the solution. :D
(We are in the JavaScript forum)

Most often that's caused by whitespace in your code. Try writing all markup for your cells on one single line without spaces between the tags. Like so:

<td><img><td>

Hope that works. :)

blufive
01-12-2003, 09:15 AM
This article (http://devedge.netscape.com/viewsource/2002/img-table/) should help with Netscape 7.

fluffycow
01-14-2003, 05:48 PM
ive gotten that before, its caused by some rowspans in ie5.5

Thats all I know, I just had to take the offending rowspans outta mine becuase I couldn't fix it

Ive also had it cuased by not defining the height and width of the image in the <img> tags.

and had it cuased by the good old whitespace....