X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Edited header code and it moved down a few pixels? (https://forum.x-cart.com/showthread.php?t=597)

ArlyDude 11-09-2002 07:54 AM

Edited header code and it moved down a few pixels?
 
Hello, I recently removed the code for the categories online and my search box, and it looks ok, but it shofted my whole header of my page down a few pixels it looks like. Take a look for yourself, see the gray at the top of the page?

http://www.digitaladdition.net/xcart/customer/home.php

ArlyDude 11-09-2002 08:15 AM

Code
 
Here's the code for the head.tpl

{* $Id: head.tpl,v 1.21 2002/09/05 12:43:21 zorg Exp $ *}
<TABLE align=center border=0 cellPadding=0 cellSpacing=0 class=TableTop width=100%>
<TR>
<TD colSpan=2 valign="top" width="284"><a href="/">
[img]{$ImagesDir}/daredlogo3.jpg[/img]</a></TD>
<TD align=right bgcolor="#000000">
{if $main eq "catalog" and $current_category.category eq "" and $all_languages_numba gt 1}
<FORM action="home.php" method=GET name=sl_form>
<SELECT name=sl onChange="javascript: document.sl_form.submit()">


{section name=ai loop=$all_languages}
<OPTION value="{$all_languages[ai].code}"{if $store_language eq $all_languages[ai].code} selected{/if}>{$all_languages[ai].language}</OPTION>


{/section}
</SELECT>
</FORM>
{else}

{/if}
</TD>
</TR>
<TR>
<TD colSpan=3 valign="top" width="284" style="border-top-style: solid; border-top-width: 1; border-bottom-style: solid; border-bottom-width: 1" bordercolor="#000000" bgcolor="#808080">
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" id="AutoNumber1" width="475">
<tr>
<td width="64">
[img]{$ImagesDir}/home.gif[/img]<font color="#000000">Home</font></td>
<td width="23">
[img]{$ImagesDir}/clipboard.gif[/img]</td>
<td width="78"><font color="#000000">Free Quote</font></td>
<td width="23">
[img]{$ImagesDir}/hammer.gif[/img]</td>
<td width="71"><font color="#000000">PC Repair</font></td>
<td width="107">
[img]{$ImagesDir}/tracking.gif[/img]<a href="http://"><font color="#000000">Web
Design</font></a>
</td>
<td width="89">
[img]{$ImagesDir}/rmabox.gif[/img]<font color="#000000">Reseller?</font></td>
<td width="4"></td>
</tr>
</table>
</TD>
</TR>
<TR>
<TD class=WhiteLine valign=center width=70></TD>
<TD class=WhiteLine valign=center></TD>
<TD rowSpan=3 width=99% valign=top class=TableTop style="background-repeat: repeat-x">






</TD>
</TR>


Jeannie 11-09-2002 09:09 AM

Might not be generated by head.tpl

See if you have a rectangle_top.tpl with a table in it

ArlyDude 11-09-2002 09:14 AM

Code
 
Here's the code for my rectangle_top.tpl

{* $Id: rectangle_top.tpl,v 1.4 2002/04/23 10:37:57 mav Exp $ *}
<TABLE align=center border=1 cellPadding=0 cellSpacing=0 width=100%>
<TR>
<TD class=TableTop>

Jeannie 11-09-2002 09:43 AM

What if........
remove
Code:

<TR>
<TD class=TableTop>


And change border=0

ArlyDude 11-09-2002 09:54 AM

Answer
 
Nope, still no luck :evil:
I added you to my icq list, we can talk on there if you would like.

Jeannie 11-09-2002 08:11 PM

grrrr that can be so frustrating!
Not sure on this... does your skin1.css have this?
Code:

BODY { margin: 0px }

nfc5382 11-26-2002 03:39 AM

Re: Code
 
this worked for me!

thanks :)

Quote:

Originally Posted by ArlyDude
Here's the code for my rectangle_top.tpl

{* $Id: rectangle_top.tpl,v 1.4 2002/04/23 10:37:57 mav Exp $ *}
<TABLE align=center border=0 cellPadding=0 cellSpacing=0 width=100%>
<TR>
<TD class=TableTop>



All times are GMT -8. The time now is 04:16 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.