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)
-   -   space between header and main ??? (https://forum.x-cart.com/showthread.php?t=3655)

komarik 07-18-2003 06:03 PM

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

funkydunk 07-18-2003 11:15 PM

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 :)

komarik 07-19-2003 12:14 AM

It worked :P
Thanks a lot funky, i really appreciate your help.
You should see Bad boys 2, its great :wink:


All times are GMT -8. The time now is 02:42 PM.

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