Click to See Complete Forum and Search --> : images in tables


mathbates
02-10-2003, 11:39 PM
Okay, this one is really bothering me. I have a table cell that is 100 x 100, and i also have an image in that cell that is 100 x 100. Now, it fits perfectly on the x axis, but there is a strip of empty space about 5 pixels wide on the bottom of the image. I don't like this. It expands the cell a little bit, but for no apparent reason. If anyone knows how to fix that, I would really appreciate it.
Thanks,
Matt.

CyCo
02-11-2003, 12:08 AM
Have you set the table cellpadding to "0"?

mathbates
02-11-2003, 12:44 AM
cellpadding is 0, cellspacing is 0. i really have no clue why it doesn't work. i tried just making a very simple table with just one cell in it, and I still have the same problem.

CyCo
02-11-2003, 01:03 AM
Make sure your closing </td> tag is right after your closing <img> tag...on the same line, if possible


<td><img src="mypic.gif"></td>

mathbates
02-11-2003, 01:11 AM
That's it! Thank you so much. That was really bothering. You've helped me out so much.
Laters,
Matt.

CyCo
02-11-2003, 01:13 AM
I'm glad