Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Edited header code and it moved down a few pixels?

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 11-09-2002, 07:54 AM
 
ArlyDude ArlyDude is offline
 

Advanced Member
  
Join Date: Nov 2002
Location: Pennsylvania
Posts: 39
 

Default 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
Reply With Quote
  #2  
Old 11-09-2002, 08:15 AM
 
ArlyDude ArlyDude is offline
 

Advanced Member
  
Join Date: Nov 2002
Location: Pennsylvania
Posts: 39
 

Default 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>

Reply With Quote
  #3  
Old 11-09-2002, 09:09 AM
 
Jeannie Jeannie is offline
 

eXpert
  
Join Date: Sep 2002
Location: Texas
Posts: 257
 

Default

Might not be generated by head.tpl

See if you have a rectangle_top.tpl with a table in it
Reply With Quote
  #4  
Old 11-09-2002, 09:14 AM
 
ArlyDude ArlyDude is offline
 

Advanced Member
  
Join Date: Nov 2002
Location: Pennsylvania
Posts: 39
 

Default 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>
Reply With Quote
  #5  
Old 11-09-2002, 09:43 AM
 
Jeannie Jeannie is offline
 

eXpert
  
Join Date: Sep 2002
Location: Texas
Posts: 257
 

Default

What if........
remove
Code:
<TR> <TD class=TableTop>

And change border=0
Reply With Quote
  #6  
Old 11-09-2002, 09:54 AM
 
ArlyDude ArlyDude is offline
 

Advanced Member
  
Join Date: Nov 2002
Location: Pennsylvania
Posts: 39
 

Default Answer

Nope, still no luck
I added you to my icq list, we can talk on there if you would like.
Reply With Quote
  #7  
Old 11-09-2002, 08:11 PM
 
Jeannie Jeannie is offline
 

eXpert
  
Join Date: Sep 2002
Location: Texas
Posts: 257
 

Default

grrrr that can be so frustrating!
Not sure on this... does your skin1.css have this?
Code:
BODY { margin: 0px }
Reply With Quote
  #8  
Old 11-26-2002, 03:39 AM
 
nfc5382 nfc5382 is offline
 

X-Adept
  
Join Date: Nov 2002
Posts: 477
 

Default 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>
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 03:31 PM.

   

 
X-Cart forums © 2001-2020