?
Solved

Nested Tables

Posted on 2000-01-18
3
Medium Priority
?
309 Views
Last Modified: 2010-04-09
I'm trying to put together a web page with a lot of different images.  I think the best way to do this would be nested tables.  I have it looking the way I want to, almost.  There are still spaces between the nested tables.  Is there an easy way to make them align left or anything?

I have tables nested 4 deep.

THanks
0
Comment
Question by:samacdonald
3 Comments
 
LVL 3

Expert Comment

by:mohnshine
ID: 2364094
Try

CELLPADDING=0

and/or

CELLSPACING=0
0
 
LVL 2

Expert Comment

by:gravity
ID: 2364302
It's very difficult to get *no* gap whatsoever... the only I can suggest is to browse with IE which for some reason never separates <TR>'s or <TD>'s unless told to.
0
 

Accepted Solution

by:
Jaguwar earned 60 total points
ID: 2364363
If you're viewing your code in Netscape especially (as "Gravity" said, they display tables in images very differently) you actually have the advantage of always being able to see when it does that.

Try:
<table cellpsadding=0 cellspacing=0 border=0>
(and other attributes)
and make sure there is no space between the end of your image tag and your closing </TD>, not even a line break.  In other words:

<img src="imagename.gif" border="0" alt=""></td>

is NOT going to give the same result as:

<img src="imagename.gif" border="0" alt="">
</td>

No one knows why, I don't think, and it's not 100% foolproof.  Unfortunately I forget what the other thing to look for is.  However this is usually enough for most cases.  For good measure, you may want to move any closing </TR> tags right beside the last </TD> tag as well:

<img src="imagename.gif" border="0" alt=""></td></tr>
</table>

will be fine.

Hope that helps!

Jaguwar
0

Featured Post

Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Finding original email is quite difficult due to their duplicates. From this article, you will come to know why multiple duplicates of same emails appear and how to delete duplicate emails from Outlook securely and instantly while vital emails remai…
There's never been a better time to become a computer scientist. Employment growth in the field is expected to reach 22% overall by 2020, and if you want to get in on the action, it’s a good idea to think about at least minoring in computer science …
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

594 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question