Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Extra space in cells: How to remove?

Status
Not open for further replies.

CHeighlund

Programmer
Jun 11, 2007
163
US
I'm trying to work with a table layout for a form, and I'm running into a small problem. The form heading consists of a small picture (logo) and two lines of text, divided into two blocks. I figured I could use a table, with the logo pic in the first cell, and then the text in the next few.

For some reason, though, I'm always getting extra 'padding' space around my text; it almost looks like there's an extra line between the top and bottom segments. (With borders off, it looks like I've got three rows with the middle one blank.) I don't see any reason why this should be the case; I haven't done anything to the cells other than <TD align=center>. And while I acknowledge that this possibly adds a little vertical padding, I can't see it adding that much. There are no .css files acting on the page, either.

I had thought this might be due to the size of the included image, so I shrank the image by 2/3 both horizontally and vertically, then attempted to include the smaller image. Doing this simply added whitespace around the image, without doing anything to the original whitespace in the other cells.

Can anyone suggest why I might be seeing so much whitespace in my cells, or what I can do to reduce it as much as possible?
 

Your URL is?
Your browser is?

___________________________________________________________
If you want the best response to a question, please check out FAQ222-2244 first.
'If we're supposed to work in Hex, why have we only got A fingers?'
Drive a Steam Roller
Steam Engine Prints
 
You might just need to add cellspacing=0 and cellpadding=0 to get rid of the spaces.

----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.
 
Is the text in your table in a paragraph or something? Or is it simply text in a td? I would agree with everyone else that you need to show some code.

___________________________________________________________
[small]Do something about world cancer today: Comprehensive cancer control information at PACT[/small]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top