Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 05-24-2007, 05:07 PM   PM User | #1
russia5
New Coder

 
Join Date: Aug 2005
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
russia5 is an unknown quantity at this point
White space at the top

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]
russia5 is offline   Reply With Quote
Old 05-24-2007, 06:10 PM   PM User | #2
VIPStephan
The fat guy next door


 
VIPStephan's Avatar
 
Join Date: Jan 2006
Location: Halle (Saale), Germany
Posts: 7,604
Thanks: 5
Thanked 865 Times in 842 Posts
VIPStephan is a jewel in the roughVIPStephan is a jewel in the roughVIPStephan is a jewel in the rough
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 and you are missing a document type declaration at the very top of your document. I strongly encourage you to use semantic HTML for the structure and CSS to style your page.

Edit: 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.
__________________
Don’t click this link!

Last edited by VIPStephan; 05-24-2007 at 06:18 PM..
VIPStephan is offline   Reply With Quote
Old 05-25-2007, 03:58 AM   PM User | #3
whizard
Senior Coder

 
whizard's Avatar
 
Join Date: Jan 2005
Location: Philadelphia, PA, USA
Posts: 1,457
Thanks: 10
Thanked 37 Times in 37 Posts
whizard will become famous soon enoughwhizard will become famous soon enough
fyi... you're name appears in the meta tags, don't know if you care, but I would if it was MY site....

Dan
__________________
If you want to use short tags (<? or <?=$var) then make sure short_open_tag is set to "1". It really helps.
Step 1: Learn. Step 2: Search. Step 3: Post here.
whizard is offline   Reply With Quote
Old 05-26-2007, 03:16 AM   PM User | #4
koyama
Senior Coder

 
koyama's Avatar
 
Join Date: Dec 2006
Location: Copenhagen, Denmark
Posts: 1,246
Thanks: 1
Thanked 5 Times in 5 Posts
koyama will become famous soon enough
Quote:
Originally Posted by russia5 View Post
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:
Code:
<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:
Code:
body {
  margin: 0;
}
koyama is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 11:19 AM.


Advertisement
Log in to turn off these ads.