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

space between header and main ???

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 07-18-2003, 06:03 PM
 
komarik komarik is offline
 

Advanced Member
  
Join Date: Jun 2003
Posts: 41
 

Default space between header and main ???

The main table in the home.tpl doesnt get resized to 100% and leaves a space between the header. You can see what i'm talking about here http://www.liquorsrus.com/xcart/customer/home.php
Here is my home.tpl

Code:
{* $Id: home.tpl,v 1.50 2003/04/09 07:41:05 olga Exp $ *} { config_load file="$skin_config" } <html> <head> <title>{$lng.txt_site_title} {if $main eq "catalog"} {if $location eq ""} {$lng.txt_subtitle_home} {else} {strip} {section name=position loop=$location start=0 } {if %position.last% eq "true"} - {$location[position].0|escape}{/if} {/section} {/strip} {/if} {elseif $main eq "product"} {if $product.product ne ''} - {$product.product}{/if} {elseif $main eq "help"} {$lng.txt_subtitle_help} {elseif $main eq "cart"} {$lng.txt_subtitle_cart} {elseif $main eq "checkout"} {$lng.txt_subtitle_checkout} {elseif $main eq "order_message"} {$lng.txt_subtitle_thankyou} {/if} </title> { include file="meta.tpl" } <link rel="stylesheet" href="{$SkinDir}/{#CSSFile#}"> </head> <body LEFTMARGIN=0 TOPMARGIN=0 RIGHTMARGIN=0 BOTTOMMARGIN=0 MARGINWIDTH=0 MARGINHEIGHT=0> <table width="100%" height="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#EAE9D9"> <tr> <td valign="top"><table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#EAE9D9"> <tr> <td>{ include file="rectangle_top.tpl" } { include file="head.tpl" }</td> </tr> <tr width="100%"> <td valign=top><table width="100%" height="100%" border=0 cellpadding=0 cellspacing=0 bgcolor="FFFFFA"> <tr> <td width=160 valign=top>{ include file="customer/categories.tpl" } {if $active_modules.Bestsellers ne "" and $config.Modules.bestsellers_menu eq "Y"} { include file="modules/Bestsellers/menu_bestsellers.tpl" } {/if} {if $active_modules.Gift_Certificates ne "" or $active_modules.Product_Configurator ne ""} {include file="customer/special.tpl"} {/if}{ include file="news.tpl" } { include file="help.tpl" } {if $usertype eq "C"}{else}{/if}</td> <td width=20 background="{$ImagesDir}/line.gif"></td> <td valign=top> {include file="customer/home_main.tpl"} б═ </td> <td width=20></td> <td width=150 valign=top>{ include file="customer/menu_cart.tpl" } {if $login eq "" } { include file="auth.tpl" } {else} { include file="authbox.tpl" } {/if} {if $active_modules.Interneka ne ""} { include file="modules/Interneka/menu_interneka.tpl" } {/if}</td> </tr> </table> </td> </tr> <tr> <td>{ include file="rectangle_bottom.tpl" } </td> </tr> </table></td> </tr> </table> </body> </html>

Can some1 help me to fix that problem.
Thanx
Reply With Quote
  #2  
Old 07-18-2003, 11:15 PM
 
funkydunk funkydunk is offline
 

X-Man
  
Join Date: Oct 2002
Location: Cambridge, UK
Posts: 2,210
 

Default

Change:

<tr width="100%">
<td valign=top><table width="100%" height="100%" border=0 cellpadding=0 cellspacing=0 bgcolor="FFFFFA">

to

<tr width="100%">
<td valign=top height="100%"><table width="100%" height="100%" border=0 cellpadding=0 cellspacing=0 bgcolor="FFFFFA">


hth - I have tested it and works fine and dandy
__________________
ex x-cart guru
Reply With Quote
  #3  
Old 07-19-2003, 12:14 AM
 
komarik komarik is offline
 

Advanced Member
  
Join Date: Jun 2003
Posts: 41
 

Default

It worked :P
Thanks a lot funky, i really appreciate your help.
You should see Bad boys 2, its great
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:02 AM.

   

 
X-Cart forums © 2001-2020