Tables in dreamweaver: How do I get rid of the spaces.

Winchester

Diamond Member
Jan 21, 2003
4,965
0
0
I am using Dreamweaver MX 2004, there is no cell padding or spacing, both are 0. How can I get rid of this so it can be flush?

See example below:

pic
 

tfinch2

Lifer
Feb 3, 2004
22,114
1
0
If you are looking through the preview in dreamweaver it's going to look fubared, save it and view in IE or Firefox

Firefox will probably look good, but IE likes to space sh!t out for some reason. If you want to mash everything together, you can use a negative margin in CSS to achieve the desired effect.
 

Winchester

Diamond Member
Jan 21, 2003
4,965
0
0
I am looking at it in IE, not allowed to install firefox :(

"99% of our customers use IE"


I will try and look stuff up on negative margins then.

 

Merlyn3D

Platinum Member
Sep 15, 2001
2,148
0
0
Look at the code maybe? When I run into an issue like that I switch to code view and see what's causing it.
 

igowerf

Diamond Member
Jun 27, 2000
7,697
1
76
Is that space between two tables or two table cells? Try setting margins to 0 too.
 

Winchester

Diamond Member
Jan 21, 2003
4,965
0
0
Originally posted by: igowerf
Is that space between two tables or two table cells? Try setting margins to 0 too.

It is between two tables.



I figured it out within a single table.

I used this:

<TABLE cellSpacing=0 cellPadding=0 width="100%" align=center border=0>

instead of this:

<table width="100%" border="0">

 

stndn

Golden Member
Mar 10, 2001
1,886
0
0
A few possible causes:
1. there is a line break between the tables. switch to code view to look at it
2. you put the <table>s in two different <tr>s

actually, i think if you put the <table> one after another, an empty space might be automatically created (not sure - can't think on top of my head). try putting style="margin: 0;" in the <table> tags.

It might also be helpful if you could give us a snippet of your code related to those tables. Might be easier to see what went wrong there.
 

stndn

Golden Member
Mar 10, 2001
1,886
0
0
Hmmm....
looking at the code, there are a few possible culprits:

1. <td width="760" align="center" valign="top" background="middle_bar.png"><!--DWLayoutEmptyCell--> </td>
2. There are several <tr> with empty <td></td>, which only has comments in them.
3. There is white space at the bottom of your flash object.

I tried just using background color for the two tables, and they seem to work fine. Can you try removing the empty <tr>'s or the one with background, see if it fixes it somehow?
 

Winchester

Diamond Member
Jan 21, 2003
4,965
0
0
1. Those are just empty cells. Each table is like 2x5.
2. Those are just empty cells. Each table is like 2x5. The comments are created automatically by dreamweaver.
3. There is no white in my flash objects.