PDA

View Full Version : Wierd Spacing In tables


IIwyrmII
03-07-2006, 06:35 PM
I keep getting these wierd spaces when i prewiew the page

http://i2.tinypic.com/qyalp0.jpg
in DW

Creative Insanity
03-07-2006, 06:51 PM
Yeah I had that also and it took ME HOURS to find out what is causing it.
It looks fine on both the preview of dd and also in IE.
So I found the fix for it (although not a good one) and that was to remove the doc type from above the <html> tag.
Although your gaps are larger than I had.. make sure there are no
<td></td>
as that will cause gaps as well.

IIwyrmII
03-07-2006, 06:56 PM
it didn't work, heres th html

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
</head>

<body>
<div align="center">
<table width="800" height="1148" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="134" colspan="3"><div align="left">portpagetop.jpg</div></td>
</tr>
<tr>
<td width="191"><div align="left">portpages1.jpg</div></td>
<td width="486" rowspan="7"><div align="left"></div></td>
<td width="123" rowspan="7"><div align="left">portpagel.jpg</div></td>
</tr>
<tr>
<td><div align="left">portpage2.jpg</div></td>
</tr>
<tr>
<td><div align="left">portpages3.jpg</div></td>
</tr>
<tr>
<td><div align="left">portpages4.jpg</div></td>
</tr>
<tr>
<td height="69"><div align="left">portpages5.jpg</div></td>
</tr>
<tr>
<td><div align="left">portpagesl.jpg</div></td>
</tr>
<tr>
<td></td>
</tr>
</table>
</div>
</body>
</html>

Creative Insanity
03-07-2006, 07:19 PM
Kill the table height also.. let the content determain the height.
height="1148"

IIwyrmII
03-07-2006, 07:25 PM
still doesn't work

domedia
03-07-2006, 07:38 PM
did you remove all the height attributes in your TD's?

IIwyrmII
03-07-2006, 09:19 PM
yeah

current source <html>
<head>
<title>Untitled Document</title>
</head>

<body>
<div align="center">
<table width="800" border="0" cellpadding="0" cellspacing="0">
<tr>
<td colspan="3">portpagetop.jpg</td>
</tr>
<tr>
<td width="191">portpages1.jpg</td>
<td width="486" rowspan="7"></td>
<td width="123" rowspan="7">portpagel.jpg</td>
</tr>
<tr>
<td>portpage2.jpg</td>
</tr>
<tr>
<td>portpages3.jpg</td>
</tr>
<tr>
<td>portpages4.jpg</td>
</tr>
<tr>
<td>portpages5.jpg</td>
</tr>
<tr>
<td>portpagesl.jpg</td>
</tr>
<tr>
<td></td>
</tr>
</table>
</div>
</body>
</html>

ramandeep
03-07-2006, 09:52 PM
Ok Mate,
Now can you attach your page with images that will help to solve it quick.

IIwyrmII
03-07-2006, 10:10 PM
ok

Creative Insanity
03-08-2006, 05:14 AM
Ok at the top of the page remove from under body tag:
<div align="center">
and at the bottom remove above body tag:
</div>

Then change:
<table width="800" border="0" cellpadding="0" cellspacing="0">
to
<table width="800" border="0" align="center" cellpadding="0" cellspacing="0">
and you ahould be the following look in FF.

IIwyrmII
03-08-2006, 08:13 AM
i guess its just my comp cause im still getting the spaces, its becoming a portfolio anyway so if it works on others it should be no problem. Thank you guys for all your help.

Creative Insanity
03-08-2006, 09:02 AM
I did also have the spaces and they went ta ta once I done what I mentioned.

davidj
03-08-2006, 10:25 AM
So I found the fix for it (although not a good one) and that was to remove the doc type from above the <html> tag.


thats not very W3C compliant CI

IIwyrmII
03-08-2006, 03:03 PM
<html>
<head>
<title>Untitled Document</title>
</head>

<body>
<table width="800" align="center" border="0" cellpadding="0" cellspacing="0">
<tr>
<td colspan="3">portpagetop.jpg</td>
</tr>
<tr>
<td width="191">portpages1.jpg</td>
<td width="486" rowspan="7"></td>
<td width="123" rowspan="7">portpagel.jpg</td>
</tr>
<tr>
<td>portpage2.jpg</td>
</tr>
<tr>
<td>portpages3.jpg</td>
</tr>
<tr>
<td>portpages4.jpg</td>
</tr>
<tr>
<td>portpages5.jpg</td>
</tr>
<tr>
<td>portpagesl.jpg</td>
</tr>
<tr>
<td height="258"></td>
</tr>
</table>
</body>
</html>


fixed it. i just defined the hight in the last cell and it worked, sorry for bothering you guys, i should have been able to figure that out sooner.