View Full Version : problem with extra space on the bottom of rows in a table
Krap22
07-22-2002, 08:57 PM
I have having a problem with my tables. Maybe its just a simple setting that i am missing. When ever i go to a new row with my tables i get some extra space about 3 pixels wide at the bottom of the row. This is causing some space inbetween my images. How do i get rid of this???
boxer_1
07-22-2002, 09:09 PM
Could you post a link so we could have a look at your code? Are you giving your table(s) the bolded attributes below?
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
Content here...
</td>
</tr>
</table>
Also, give your images a border attribute of "0" (border="0"). Again, we would be better able to help you out if we could see some of your code ;) .
Krap22
07-22-2002, 09:16 PM
<table cellspacing="0" cellpadding="0" border="0" width="100%" bgcolor="#eeeeee" >
<tr>
<td height="50" width="100%" bgcolor="53588A" valign="middle">
<img src="images/untitled-1.gif" height ="50" border="0">
</td>
</tr>
</table>
in the page the image isn't centered vertically. it puts it flush with the top of the row but there is some extra space at the bottom of the row. There should be no background showing above or below it.
boxer_1
07-22-2002, 09:32 PM
Just for testing purposes, what result do you get if you remove the height attribute from you table cell (height="50")?
Krap22
07-22-2002, 09:35 PM
it fits the row to the image height except it still has that space below it.
Spookster
07-22-2002, 10:49 PM
Make sure you don't have a space between your image tag and the closing cell tag for example:
<td><img src="foo.gif"> </td>
HalloweenFreak
07-23-2002, 01:28 AM
Hi,
It could be your image itself. Open it in a graphics editor and look to see if it has a few pixels added to it on the bottom and crop it off. If no editor, you can check by placing the image on a test html page with a black background if it's a white background image or vice-versa. Plus try placing your td and tr and table ending tags on the same line. Sometimes that has an affect on the appearance just like the ending font tag will give you a pixel or two more space between the last line of your sentance compared to the rest if you do not put it below what you wrote.
Hope it helps,
Bye,
Allan :thumbsup:
Krap22
07-23-2002, 03:59 PM
thanks for all the info
it was just that my </td> tag was on the next line. When i put it right after the <img> tag it was fine
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.