1
jamiedotcom
3 inch gap at the top of my theme

Hey people, im changed this theme around but the thing is no matter what i try and do i always end up with a 3 inch gap at the top of the page any one got any ideas?

heres my code

[quote]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<{$xoops_langcode}>" lang="<{$xoops_langcode}>">
<head>
<link rel="stylesheet" type="text/css" media="screen" href="<{$xoops_themecss}>" />
<meta http-equiv="content-type" content="text/html; charset=<{$xoops_charset}>" />
<meta http-equiv="content-language" content="<{$xoops_langcode}>" />
<meta name="robots" content="<{$xoops_meta_robots}>" />
<meta name="keywords" content="<{$xoops_meta_keywords}>" />
<meta name="description" content="<{$xoops_meta_description}>" />
<meta name="rating" content="<{$xoops_meta_rating}>" />
<meta name="author" content="<{$xoops_meta_author}>" />
<meta name="copyright" content="<{$xoops_meta_copyright}>" />
<meta name="generator" content="XOOPS" />
<title><{$xoops_sitename}> - <{$xoops_pagetitle}></title>
<link href="<{$xoops_url}>/favicon.ico" rel="SHORTCUT ICON" />
<link rel="stylesheet" type="text/css" media="screen" href="<{$xoops_url}>/xoops.css" />
<body leftmargin="0" topmargin="10" width="98%">
<table width="98%" align="center" cellpadding="0" cellspacing="0">
<tr>
<td valign="top" class="topstrip">
&nbsp;</td>
<td valign="top" class="topstrip">&nbsp;</td>
<td align="right" valign="top" class="topstrip">
<div align="right">
<table width="350" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="84" valign="top">&nbsp;</td>
<td width="144" valign="bottom" align="right">&nbsp;</td>
<td valign="bottom" align="left">&nbsp;</td>
<td valign="bottom"><img src="<{$xoops_imageurl}>Sabre_page1_files/Sabre_page1_topstrip_corner.gif" editor="Webstyle4" moduleid="Default (Project)\Sabre_page1_topstrip_corner.xws" border="0" /></td>
</tr>
</table>
</div></td>

</tr>
<tr valign="top">
<td colspan="3"><table width="100%" cellspacing="0" cellpadding="0">
<tr>
<td colspan="4" valign="top" class="topbar">&nbsp;</td>
<{if $xoops_isuser}>
Welcome<a href="<{$xoops_url}>/user.php"> <b><{$xoops_uname}></b> </a>&nbsp;
<{/if}>
<{if !$xoops_isuser}>
<form action="<{$xoops_url}>/user.php" method="post" style="margin: 5px;">
<input type="hidden" name="xoops_redirect" value="<{$xoops_requesturi}>" />
<input type="hidden" name="op" value="login" />
username: <input type="text" name="uname" size="12" />
password: <input type="password" name="pass" size="12" />&nbsp;
<input type="submit" value="login" />&nbsp;&nbsp;
<img src="<{$xoops_imageurl}>images/icon_mini_faq.gif" alt="" />
<a href="<{$xoops_url}>/user.php#lost">forget password</a>&nbsp;
<img src="<{$xoops_imageurl}>images/icon_mini_register.gif" alt="" />
<a href="<{$xoops_url}>/register.php"> register</a>
</form>
<{else}>&nbsp;&nbsp;
<img src="<{$xoops_imageurl}>images/icon_mini_profile.gif" alt="" />
<a href="<{$xoops_url}>/user.php">Account </a>&nbsp;
<img src="<{$xoops_imageurl}>images/icon_mini_groups.gif" alt="" />
<a href="<{$xoops_url}>/edituser.php">Edit </a>&nbsp;
<img src="<{$xoops_imageurl}>images/icon_mini_members.gif" alt="" />
<a href="<{$xoops_url}>/notifications.php">Notification</a>&nbsp;
<img src="<{$xoops_imageurl}>images/icon_mini_message.gif" alt="" />
<a href="<{$xoops_url}>/viewpmsg.php">Message</a>&nbsp;
<{if $xoops_isadmin}>
<img src="<{$xoops_imageurl}>images/icon_mini_groups.gif" alt="" />
<a href="<{$xoops_url}>/admin.php">Administration</a>&nbsp;
<{/if}>
<img src="<{$xoops_imageurl}>images/icon_mini_login.gif" alt="" />
<a href="<{$xoops_url}>/user.php?op=logout">Logout</a>&nbsp;
<{/if}>
</tr>
<tr>
<td width="160" valign="top" class="topbar"><img src="<{$xoops_imageurl}>Sabre_page1_files/Sabre_page1_spacer.gif" editor="Webstyle4" moduleid="Default (Project)\Sabre_page1_spacer.xws" border="0" /></td>
<td width="31" valign="top"><img src="<{$xoops_imageurl}>Sabre_page1_files/Sabre_page1_mid_left.gif" editor="Webstyle4" moduleid="Default (Project)\Sabre_page1_mid_left.xws" border="0" /></td>
<td width="100%" valign="bottom" class="hnavbg">
</td>
<td width="78" valign="top"><img src="<{$xoops_imageurl}>Sabre_page1_files/Sabre_page1_mid_right.gif" editor="Webstyle4" moduleid="Default (Project)\Sabre_page1_mid_right.xws" border="0" /></td>
</tr>
</table></td>
</tr>
<tr valign="top">
<td colspan="3"> <table width="100%" cellpadding="0" cellspacing="0">
<tr>
<td width="162" height="100%" valign="top" class="leftcolbg"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="leftcolbg">
<p>&nbsp;</p>
</td>
</tr>
<tr>
<td valign="top" class="leftpanel">
<!-- insert left column text here -->
<!-- Start left blocks loop -->
<{foreach item=block from=$xoops_lblocks}>
<{include file="sabre/theme_blockleft.html"}>
<{/foreach}>
</tr>
</table></td>
<td id="centercolumn">

<!-- Display center blocks if any -->
<{if $xoops_showcblock == 1}>

<table cellspacing="0">
<tr>
<td id="centerCcolumn" colspan="2">

<!-- Start center-center blocks loop -->
<{foreach item=block from=$xoops_ccblocks}>
<{include file="sabre/theme_blockcenter_c.html"}>
<{/foreach}>
<!-- End center-center blocks loop -->

</td>
</tr>
<tr>
<td id="centerLcolumn">

<!-- Start center-left blocks loop -->
<{foreach item=block from=$xoops_clblocks}>
<{include file="sabre/theme_blockcenter_l.html"}>
<{/foreach}>
<!-- End center-left blocks loop -->

</td><td id="centerRcolumn">

<!-- Start center-right blocks loop -->
<{foreach item=block from=$xoops_crblocks}>
<{include file="sabre/theme_blockcenter_r.html"}>
<{/foreach}>
<!-- End center-right blocks loop -->

</td>
</tr>
</table>

<{/if}>
<!-- End display center blocks -->

<div id="content">
<{$xoops_contents}>
</div>
</td>
<td width="180" valign="top" class="rightcoltext">
<!-- Start right blocks loop -->
<{foreach item=block from=$xoops_rblocks}>
<{include file="sabre/theme_blockright.html"}>
<{/foreach}>
<!-- End right blocks loop -->
<p>&nbsp;</p>

<p>&nbsp;</p></td>
<td width="40" valign="top">&nbsp;</td>
</tr>

<td valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="81"><img src="<{$xoops_imageurl}>Sabre_page1_files/Sabre_page1_rightcolumn_bottom.gif" editor="Webstyle4" moduleid="Default (Project)\Sabre_page1_rightcolumn_bottom.xws" border="0" /></td>
<td width="100%" class="panelbg">&nbsp;</td>
<td width="41"> <div align="right"><img src="<{$xoops_imageurl}>Sabre_page1_files/Sabre_page1_rightcolumn_bottom2.gif" editor="Webstyle4" moduleid="Default (Project)\Sabre_page1_rightcolumn_bottom2.xws" border="0" /></div></td>
</tr>
</table></td>
<td align="center" valign="top" class="footer">
<p><{$xoops_footer}></p>
<h1>&nbsp;</h1>
</td>
<td valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="81"><img src="<{$xoops_imageurl}>Sabre_page1_files/Sabre_page1_rightcolumn_bottom.gif" editor="Webstyle4" moduleid="Default (Project)\Sabre_page1_rightcolumn_bottom.xws" border="0" /></td>
<td width="100%" class="panelbg">&nbsp;</td>
<td width="41"> <div align="right"><img src="<{$xoops_imageurl}>Sabre_page1_files/Sabre_page1_rightcolumn_bottom2.gif" editor="Webstyle4" moduleid="Default (Project)\Sabre_page1_rightcolumn_bottom2.xws" border="0" /></div></td>
</tr>
</table></td>
<td valign="top">&nbsp;</td>
</tr>
</table></td>
</tr>
</table>
</body>
</html>
[quote]

2
Anonymous
Re: 3 inch gap at the top of my theme
  • 2005/5/12 23:58

  • Anonymous

  • Posts: 0

  • Since:


Is it possible to see this on a live page? I always find it easier to detect bugs when the complete code is rendered. It also could be possible that there is a bug in your style.css.

EDIT: BTW the closing head-tag is missing.

3
Skythe
Re: 3 inch gap at the top of my theme
  • 2005/5/21 13:49

  • Skythe

  • Just popping in

  • Posts: 99

  • Since: 2004/7/2 2


Set <body topmargin="0"> and <form style="margin: 0;">.

4
jonpz
Re: 3 inch gap at the top of my theme
  • 2005/5/25 22:05

  • jonpz

  • Just popping in

  • Posts: 16

  • Since: 2005/5/10


or better yet, take the margin attributes out of the body tag altogether and place them in your style.css file
:)

Login

Who's Online

266 user(s) are online (174 user(s) are browsing Support Forums)


Members: 0


Guests: 266


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits