...

View Full Version : White space at the top



russia5
05-24-2007, 05:07 PM
I have white space at the top of my home page. I have not that much &nbsp on my page and do not believe it is the problem. I am thinking that possibly it could be caused by Javascript, but I don't know. I am using Smarty. Here is the index.tpl

[code]
<html>
<head>
<title>A Russian Sweet</title>
<META NAME="keywords" CONTENT="russian bride, ukrainian bride, russian lady, russian woman, russian women, mail order bride, sexy russian girl ">
<META NAME="description" CONTENT="Introductions of only beautiful Russian mail order brides. Our Russian Ladies and Ukrainian women want only love and marriage. Meet a sexy russian girl and make her a Russian bride that will love you.">
<META NAME="author" CONTENT="Greg Ladner">
<META NAME="ROBOTS" CONTENT="ALL">
<link href="stylenew.css" rel="stylesheet" type="text/css">
{literal}
<style>
A
{
COLOR: red;
FONT-FAMILY: Arial, Verdana, Helvetica;
FONT-SIZE: 11px;
FONT-WEIGHT: bold;
TEXT-DECORATION: none
}
A:hover
{
COLOR: #993300;
FONT-SIZE: 11px;
FONT-WEIGHT: bold;
TEXT-DECORATION: none
}
</style>
{/literal}
</head>
<body topmargin="0" leftmargin="0" rightmargin="0" link="#FF6633">
<table width="765" border="0" align="center" cellpadding="0" cellspacing="1" height="0%">
<tr height="40">
<td bgcolor="white" valign="top">
<p align="center">{include file = "header.tpl"}</p>
</td>
</tr>
</table>
<table width="765" border="0" align="center" cellpadding="0" cellspacing="1" height="10%">
<tr height="1%">
<td valign="top" height="0%">
<table width="100%" border="0" align="center" cellpadding="3" cellspacing="0" height="0%">
<tr>
<td align="center">
<table align="center" width="95%" border="0" cellspacing="2" cellpadding="1">
{*sid, picture1*}
{foreach name=outer item=user from=$users}
{if $smarty.foreach.outer.index is div by 5}
<tr valign="top">
{/if}
<td width="18%" align="center"><a href="gallery/ru_girl.php?id={$user.sid}"><img src="images_thumb1/{$user.picture1}" alt="Picture of {$user.full_name}" border="0"></a><br></td>
{if ($smarty.foreach.outer.index + 1) is div by 5}
</tr>
{/if}
{/foreach}
<tr valign="top">
<td class="ulinedtd" colspan="4" align="center">
<script src='js/ru_pagination.js' type='text/javascript'></script>
{pagination pageurl = $thepager->pageurl pageno = $thepager->pageno pagecount = $thepager->pagecount hiddenstr = $hiddenstr}
</td>
</tr>
</table>
</td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
</table>
</td>
<td bgcolor="FF6600" valign="top" height="0%">
{include file = "rightmenuhome.tpl"}
<table cellpadding="0" cellspacing="0" border="0" bgcolor="FF6600">
<tr>
<td height="0%" bgcolor="FF6600">
</td>
</tr>
</table>
</td>
</tr>
</table>
<table width="765" cellpadding="0" cellspacing="0" align="center" border="0" height="0%">
<tr height="0%">
<td height="0%">
{include file = "footer.tpl"}
</td>
</tr>
</table>
</body>
</html>
[code]

Here is the code for the header

[code]

<table width="765" border="0" cellspacing="0" cellpadding="0">
<tr>
<td background="images/bg1.gif"><img src="images/cut1.jpg" width="151" height="90"><img src="images/cut2.jpg" width="156" height="90"><img src="images/cut3.jpg" width="149" height="90"><img src="images/cut4.jpg" width="148" height="90"><img src="images/cut5.jpg" width="146" height="90"></td>
<td background="bg.gif">&nbsp;</td>
</tr>
<tr valign="top">
<td colspan="2">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td valign="top" background="images/bluebg1.gif"><img src="images/cut7a.jpg" width="151" height="24"><img src="images/cut7.jpg" width="156" height="24">
</td>
<!-- <td colspan="2" valign="top" background="images/bluebg1.gif">-->
<td colspan="0" valign="top" background="images/bluebg1.gif">
<table width="100%" border="0" cellpadding="0" cellspacing="0" background="images/bluebg.gif">
<tr>
<td>
<img src="images/russianladies.gif" width="184" height="14">
</td>
<td>
<form action="" method="post" name="frmsub" id="frmsub">
<input name="email" type="text" class="style" id="email">
<input name="funcml" type="hidden" value="">
<input name="p" type="hidden" id="p" value="8">
<input type="hidden" name="nlbox[1]" value="1">
</form>
</td>
<td width="9%">
<a href="javascript:void fnsubscribe();"><img src="images/arrow.gif" width="32" height="20" border="0"> </a>
</td>
<td>
<a href="javascript:void fnUNsubscribe();"><img src="images/unsubscribe.gif" width="73" height="20" border="0">
</a>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan="2" background="images/lightbluebg.gif">
<div align="left">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="75" align="center" class="linktext">
<a href="gallery.php"><font color="#FFFFFF" size="1" face="Verdana"><strong>Home</strong></font></a>
</td>
<td width="80" align="center" class="linktext">
<a href="craftysyntax2.12.9/livehelp.php?department=1
"><font color="#FFFFFF" size="1" face="Verdana"><strong>FAQ</strong>
</font></a>
</td>
<td width="136" align="center" class="linktext">
<a href="/contactus.php"><font color="#FFFFFF" size="1" face="Verdana"><strong>Contact
Us</strong></font> </a>
</td>
<td width="120" align="center" class="linktext"><a href="links.html"><font color="#FFFFFF" size="1" face="Verdana"><strong>Our Directory</strong></font> </a>
</td>
<td width="31"><div align="left"><img src="images/a14.jpg" width="30" height="24"></div></td>
<td class="linktext"><form name="search" method="post" action="dating/index.php">Search by ID: <input type="text" name="id" size="6" maxlength="10" value=""> &nbsp; <input name="Submit" type="submit" value="->"></form>
</td>
<td class="linktext">
<form name="searchByAge" method="post" action="dating/index.php">
By Age&nbsp;
<select name="age" onChange="searchByAge.submit()">
<option selected value="">Select Age</option>
<option value="IN (18,19,20,21)">18-21 </option>
<option value="IN (22,23,24,25)">22-25 </option>
<option value="IN (26,27,28,29,30)">26-30 </option>
<option value="30">30 Plus </option>
</select>
</form>
</td>
</tr>
</table>
</div>
</td>
</tr>
</table>
[code]

VIPStephan
05-24-2007, 06:10 PM
From the code you provided I canít see any whitespace. However, I donít see any reference to a JavaScript and itís impossible to help you this way. It would be best if you provided a link to an online example so we can actually see whatís wrong.

What I can tell youÖ well, you probably donít care at all as I donít expect a website with such a subject to be properly coded according to standards and accessibility guidelines but I feel that itís my civic duty to inform you that tables are not meant to be used for a page layout (http://hotdesign.com/seybold/) and you are missing a document type declaration (http://www.alistapart.com/articles/doctype/) at the very top of your document. I strongly encourage you to use semantic HTML (http://brainstormsandraves.com/articles/semantics/structure/) for the structure and CSS to style your page.

OK, a short search for the description text in your meta tag brought be to a site called russ!answ337z dot us (encrypted so SEs wonít pick it up - geeks will know what to do ;)) and it appears to be the site you are talking about. And it also appears (or is pretty obvious actually) that you have three empty paragraphs at the very top even before the HTML that donít belong there. Try to remove them an see what happens.

whizard
05-25-2007, 03:58 AM
fyi... you're name appears in the meta tags, don't know if you care, but I would if it was MY site....

Dan

koyama
05-26-2007, 03:16 AM
I have white space at the top of my home page. I have not that much &nbsp on my page and do not believe it is the problem.
You have this:


<body topmargin="0" leftmargin="0" rightmargin="0" link="#FF6633">

Here you are trying to eliminate the default margins for the body element. But topmargin, leftmargin, and rightmargin are proprietary body element attributes introduced by Internet Explorer.

Netscape instead used marginheight and marginwidth which are still understood by Firefox.

Fortunately, you can now remove those attributes and just use styles:


body {
margin: 0;
}



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum