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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Wrestling with stubborn tables...

Status
Not open for further replies.

SADCAT

Technical User
Aug 22, 2001
10
CA
Okay, I've asked this question now on several other forums and nobody seems to be able to figure out what is wrong!

I am a table freak. I use tables to position everything nicely on my webpages. They are fabulous! That is, they were up until about a month ago when the tables got minds of their own!

I have not upgraded my browser, I have not changed anything in my system, I have not adjusted anything in the HTML to be any different than how I've always done it. BUT, for some reason I just cannot fathom, every cell I create in a table puts in this five pixel white space at the bottom.

I have set cellspacing and cellpadding to 0, "0" and 0% and "0%" and nothing has fixed this irritating problem. I make my pages out of several dozen images that all connect to each other using tables to form the entire look of the page. I cannot do this when there are white breaks allover the place!

Any ideas? It's like my browser just decided it wanted to piss me off.
 
Usually its the placement of your td tags.

If you do it like this:
Code:
<table>
<tr>
<td>
<img src=&quot;img1.gif&quot; width=10 height=10>
</td>
<td>
<img src=&quot;img2.gif&quot; width=10 height=10>
</td>
</tr>
</table>
You will get extra space after each image.

Try it like this (no newline seperating td tags fom img):
Code:
<table>
<tr>
<td><img src=&quot;img1.gif&quot; width=10 height=10></td>
<td><img src=&quot;img2.gif&quot; width=10 height=10></td>
</tr>
</table>
-gerrygerry
misanthropist01@hotmail.com
 
Thank you! I recently started doing that, but I never thought for a moment it would effect the look of the tables (I use notepad for my HTML). This is great, I'm sure that's the problem. :)
 
you should use css, its much easyer. not knowing is an excuse for those umwilling to lern -- John Rueben
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top