Forum Moderators: open

Message Too Old, No Replies

A ten second HTML puzzle for you...

why is it shunted down one line...?

         

Harley_m

11:29 am on Apr 3, 2003 (gmt 0)

10+ Year Member



Below is a cut down version of a page that is causing me to do my nut in - maybe its simple, but i simply cannot see why that graphic image at the top is not at the top - but one line down when rendered - is it a silly table, a stupid tag, a margin problem?

its probably right under my nose - but i cant see it - i would be greatful if you could point it out!

Thanks

Harley

HERE :

<html>
<head>
<title>Welcome to Widgets are us...</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta content="True" name="vs_showGrid">
<meta content="Microsoft Visual Studio.NET 7.0" name="GENERATOR">
<meta content="Visual Basic 7.0" name="CODE_LANGUAGE">
<meta content="JavaScript" name="vs_defaultClientScript">
<meta content="http://schemas.microsoft.com/intellisense/ie3-2nav3-0" name="vs_targetSchema">
<link href="MenuStyle.css" type="text/css" rel="stylesheet">
</head>
<body bgcolor="#FFFFFF" scroll="no">
<table height="883" cellspacing="0" cellpadding="0" width="1134" border="0" ms_2d_layout="TRUE">
<tr>
<td width="13" height="0"></td>
<td width="9" height="0"></td>
<td width="138" height="0"></td>
<td width="698" height="0"></td>
<td width="287" height="0"></td>
</tr>
<tr valign="top">
<td height="15" width="13"></td>

<td colspan="4" rowspan="4"><img height="122" alt="" src="http://www.example.co.uk%5CFadedTopGraphic.jpg" width="1132" align="top"></td>
</tr>
<tr valign="top">
<td height="38" width="13"></td>
<td colspan="3" width="4">
<p>&nbsp;</p>
</td>
</tr>
<tr valign="top">
<td height="38" width="13"></td>
<td colspan="3" width="4">
<p>&nbsp;</p>
</td>
</tr>
<tr valign="top">
<td height="32" width="13"></td>
<td colspan="3" width="4">
<p>&nbsp;</p>
</td>
</tr>
<tr valign="top">
<td height="1" width="13"></td>
<td colspan="3" rowspan="3"><span id="ASPnetMenu1" style="width:575px;">
</span></td>
<td width="287"></td>
</tr>
<tr valign="top">
<td height="5" width="13"></td>
<td rowspan="2" width="287"><span id="DateTimeLabel" style="font-size:Smaller;height:4px;width:243px;">Thursday
April 03, 2003</span></td>
</tr>
<tr valign="top">
<td height="16" width="13"></td>
<td colspan="3" rowspan="2" width="4">
<p>&nbsp;</p>
</td>
</tr>
<tr valign="top">
<td height="22" width="13"></td>
<td colspan="2" rowspan="4">&nbsp;</td>
<td colspan="2" rowspan="4">&nbsp;</td>
</tr>
<tr valign="top">
<td height="38" width="13"></td>
<td colspan="3" width="4">
<p>&nbsp;</p>
</td>
</tr>
<tr valign="top">
<td height="38" width="13"></td>
<td colspan="3" width="4">
<p>&nbsp;</p>
</td>
</tr>
<tr valign="top">
<td height="640" width="13"></td>
<td colspan="3" width="4">
<p>&nbsp;</p>
</td>
</tr>
&nbsp;
</table>
</body>
</html>

[edited by: tedster at 6:13 pm (utc) on April 3, 2003]
[edit reason] make url generic [/edit]

aspdaddy

11:35 am on Apr 3, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Its coz your first row has no content in the cells, change one to <td>&nbsp;</td> and it will work.

ShawnR

11:53 am on Apr 3, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I'm not convinced that is it. In fact, I think that will put a second blank line...

I think the problem is the &nbsp; in the 4th line from the bottom of your code, before the </table>, but not within a table cell.

Shawn

aspdaddy

12:12 pm on Apr 3, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You are right, I misread the question :(

Harley_m

12:35 pm on Apr 3, 2003 (gmt 0)

10+ Year Member



Prize goes to shawn! - lol - thanks alot - there i was looking at the top of the page - at ther table ect - wondering where on earth it was!

lol - always helps to get other minds onto it - thanks alot :)

Harley

g1smd

10:41 pm on Apr 3, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Some versions of Netscape will not properly render a table cell that is completely empty. You need a minimum of &nbsp; in each cell whatever happens.