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

Trouble with eliminating space from between table rows! :)

Status
Not open for further replies.

JProg

Programmer
Apr 4, 2002
88
0
0
JP
Hi Everyone,

I have written a page that presents a table inside a div tag. The table contained within the div tag is being used with some javascript to make a pop-up menu. Everything is working sweat, menu pops-up, etc, however I am not 100% satisfied with how the menu looks. I have white space between pictures that I am using in the table. Basically the table is made up of a seven rows, each containing one data cell. A picture is contained within each data cell. I cannot get rid of about 2mm of white space between the pictures! I have tried setting the table to use no border, 0 cellpadding and 0 cellspacing, all to no avail. Is there anything else that you could suggest I do in order to eliminate this really annoying white space? Thanks in advance for your help.

Regards

Davo
 
Try this:

<table style="margin:0px; padding:0px;" ....

opinion {
inline-styles: are-messy;
internal-stylesheets: waste-space;
external-stylesheets: are-bliss;
}
 
Hi mate,

Without seeing your code it's hard to tell, but one thing to make sure is that there are no breaks in your table cells.

Code:
<TABLE border=0 cellpadding=0 cellspacing=0> 
<TR> 
<TD><IMG src="example.jpg"> 
</TD> 
<TD><IMG src="example.jpg"> 
</TD> 
</TR> 
</TABLE>

If you have something like the above, it should be changed to:

Code:
<TABLE border=0 cellpadding=0 cellspacing=0> 
<TR> 
<TD><IMG src="example.jpg"></TD> 
<TD><IMG src="example.jpg"></TD> 
</TR> 
</TABLE>

Notice there are no breaks in the table cells.

Hope this helps

Wullie


The pessimist complains about the wind. The optimist expects it to change. The leader adjusts the sails. - John Maxwell
 
Wullie,

Thanks for the info, I was able to sort my presentation issues out. HTML certainly has a lot of little quirks! :)

Again, thanks

Regards

Davo
 
Hi mate,

There are quite a few of them. The trick is to remember for future use, so you don't get caught out with the same thing twice. (It's happened to me more than once) [smile]

Hope this helps

Wullie

Fresh Look - Coldfusion Hosting

The pessimist complains about the wind. The optimist expects it to change. The leader adjusts the sails. - John Maxwell
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top