Forum Moderators: open

Message Too Old, No Replies

Weird Gap on page - Why?

Large gap between tables 2 & 3 not sure why....

         

feemgh

9:41 pm on Jan 6, 2003 (gmt 0)

10+ Year Member



Can anyone help with this problem that is driving me insane.

I have built a couple of pages for a website and they all look fine but this page is doing funny things. Can anyone explain why? The third table is about an inch below the second - what have I done wrong?

Here is the code....

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

<script language="javascript" type="text/javascript">
<!-- Begin
// End-->

</script>
</head>

<body bgcolor="#FFFFFF" text="#000000">
<table align="center" width="768">
<tr>
<td width="19%"><img src="images/hlogo3" width="150" height="95"></td>
<td width="36%"><img src="images/wordStr1" width="283" height="28"></td>
<td width="27%" valign="bottom"><img src="images/wordh2" width="216" height="67"></td>
<td width="2%"><img src="images/b.gif" width="12" height="8"></td>
<td width="11%">
<center><img src="images/Sheaf4" width="61" height="70"></center>
</td>
<td width="2%"><img src="images/b.gif" width="12" height="1"></td>
</tr>
</table>

<table width="768" align="center" >
<tr> </td>
</tr>
</table>
<script language="javascript" type="text/javascript">
<!-- //Begin
//-->
</script>

<table width="768" background="images/cream.gif" align="center">
<tr>
<td colspan=4 align="center"><img src="images/act1.gif" width="121" height="29"><br>
<br>There are plenty of activities to pursue, during your stay at Strathtyrum
House, if <a href="golf_standdrews.htm">golf</a> is not on your agenda!<br><br>
</td>
</tr>
<tr>
<td colspan=4 align="center" bgcolor="e7e5be"><i>Castles and Historic Buildings</i></td>
</tr>
<tr>
<td align="center" width="25%"><img src="images/dunf.jpg" width="150" height="98"><br>
<br>
<font size="2">Dunfermline Abbey</font></td>
<td valign="top" width="25%"><br>
Dunfermline Abbey<br>
<font size="1">Tel:01383 739026</font><br>
<br>
Edinburgh Castle<br>
<font size="1">Tel:01383 739026</font><br><br>
Edzell Castle and Gardens<br>
<font size="1">Tel:01356 648631</font><br>
<br>
Falkland Palace and Gardens<br>
<font size="1">Tel:01337 857397</font><br>
<br></td>
<td align="center" width="25%"><img src="images/castle.jpg" width="150" height="98"><br>
<br>
<font size="2">St Andrews Castle</font></td>
<td width="25%"><br>
Glamis Castle<br>
<font size="1">Tel:01383 739026</font><br>
<br>
Scone Palace, Perth<br>
<font size="1">Tel:01738 55200</font><br>
<br>
St Andrews Castle<br>
<font size="1">Tel:01334 477196</font><br>
<br>
St Andrews Cathedral<br>
<font size="1">Tel:01334 472563</font><br>
<br>
</td>
</tr>
<tr>
<td colspan=4 valign="top" align="center" bgcolor="e7e5be"><i>Sporting Activities</i></td>
</tr>
<tr>
<td align="center" width="25%"><br><img src="images/fish.jpg" width="150" height="98"><br>
<br>
<font size="2">Newton Hill - Fly Fishing</font></td><br><br>
<td valign="top" width="25%"><br>
Cluny's - Clay pigeon shooting<br>
<font size="1">Tel:01592 720374</font><br>
<br>
Kinaldy Equestrian Centre<br>
<font size="1">Tel:01334 470909</font><br>
<br></td>

<td align="center" width="25%"><br><img src="images/knock.jpg" width="150" height="98"><br>
<br>
<font size="2">Knockhill</font></td><br><br>
<td valign="top" width="25%"><br>
Knockhill Racing Circuit<br>
<font size="1">Tel:01383 723337</font><br>
<br>
Newton Hill Country Sports<br>
<font size="1">Tel:01382 542513</font><br>
<br>
</td>
</tr>
<tr>
<td colspan=4 valign="top" align="center" bgcolor="e7e5be"><i>Visitor Attractions</i></td>
</tr>
<tr>
<td align="center" height="19" width="25%"><br><img src="images/brit.jpg" width="150" height="98"><br>
<br>
<font size="2">Britannia,<br>Edinburgh</font></td>
<td valign="top" width="25%"><br>
Royal Yacht Britannia<br>
<font size="1">Tel:0131 555 5566</font><br>
<br>
Golf Museum, St Andrews<br>
<font size="1">Tel:01334 470909</font><br>
<br></td>

<td align="center" width="25%"><br><img src="images/anst.jpg" width="150" height="98"><br>
<br>
<font size="2">Scottish Fisheries Museum, Ansthruther</font></td>
<td valign="top" width="25%"><br>
R R S Discovery, Dundee<br>
<font size="1">Tel:01382 210245</font><br>
<br>
Scottish Fisheries Museum<br>
<font size="1">Tel:01333 310628</font><br>
<br></td>
</tr>
</table>
<br>
<table align="center" bgcolor="#8799b1" width="768">
<tr>
<td height="20"><font size="2" color="#FFFFFF"><font size="3">
<a href=""></a></font></font>
</td>
</tr>
</table>

</body>
</html>

I would be grateful for any help - I have edited out the javascript to try an reduce the code as it looks horrid.

Thank you in anticipation.

feemgh

oilman

9:50 pm on Jan 6, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



in this piece of code:
<table width="768" align="center" >
<tr> </td>
</tr>
</table>
<script language="javascript" type="text/javascript">
<!-- //Begin
//-->
</script>

you're missing the </td> - also I don't see why that table actually has to be there if it's just empty. Are you using it as a spacer?

I'd run the page through the validator at W3C as well - might catch some more unclosed tags I missed or other stuff: [validator.w3.org...]

feemgh

8:51 am on Jan 7, 2003 (gmt 0)

10+ Year Member



Thanks but the </td> is there? The box isn't empty I was just editing bits out to try and make the code easier to read. The <td> is missing here but it is actually in the full code so still no further forward!

Will run through the validator as you suggested.

Thanks

feemgh

Sinner_G

9:06 am on Jan 7, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Guess what oilman meant is that the <td> (and not </td>) is missing.

aus_dave

9:12 am on Jan 7, 2003 (gmt 0)

10+ Year Member



looks ok to me apart from the missing <td> mentioned, where specifically is the problem and what is it? Appears fine with no gap between empty table and 3rd table on IE and Netscape 6.

feemgh

9:46 am on Jan 7, 2003 (gmt 0)

10+ Year Member



Hi - it seems to be ok now? Don't know what I've done?

Anyway thanks for all your help.

feemgh