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

catergories in middle of the page?

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 02-20-2006, 08:47 PM
 
xtestedx xtestedx is offline
 

Advanced Member
  
Join Date: Oct 2005
Location: Sydney
Posts: 61
 

Default catergories in middle of the page?

Heres my website www.slixaustralia.com.au

for some reason the menu bar won't sit up the top of the page?
I've been scratching my head for days and can't work it out can someone tell me what im doing wrong?
code from home.tpl below

{* $Id: home.tpl,v 1.67.2.9 2005/06/28 12:02:38 svowl Exp $ *}
{if $printable ne ''}
{include file="customer/home_printable.tpl"}
{else}
{config_load file="$skin_config"}
<HTML>
<HEAD>
<TITLE>
{if $config.SEO.page_title_format eq "A"}
{section name=position loop=$location}
{$location[position].0|escape}
{if not %position.last%} :: {/if}
{/section}
{else}
{section name=position loop=$location step=-1}
{$location[position].0|escape}
{if not %position.last%} :: {/if}
{/section}
{/if}
</TITLE>
{ include file="meta.tpl" }
<LINK rel="stylesheet" href="{$SkinDir}/{#CSSFile#}">
</HEAD>
<body bgcolor="#ffffff" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" align= "center">
{if $body_onload ne ''} onload="{$body_onload}"{/if}

<table width= "800" height= "100%">
{ include file="head.tpl" }
{if $active_modules.SnS_connector}
{include file="modules/SnS_connector/header.tpl"}
{/if}

<table width="800" height="100%" border="0" cellpadding="0" cellspacing="0" bordercolor="#000000" bgcolor="#000000" id="Table_01">
<tr>
<td colspan="2" nowrap background="images/main_01.gif" width="196" height="1">
</td>
<td rowspan="3" nowrap background="images/main1_02.gif" width="5" height="100%">
</td>
<td rowspan="2">
[img]images/main1_03.gif[/img]</td>
<td>
[img]images/spacer.gif[/img]</td>
</tr>
<tr>

<td rowspan="2" background="images/main1_04.gif" height="100%" width="393">
{if $categories ne "" and ($active_modules.Fancy_Categories ne "" or $config.General.root_categories eq "Y" or $subcategories ne "")}
{ include file="customer/categories.tpl" }

{/if}
{if $active_modules.Bestsellers ne "" and $config.Modules.bestsellers_menu eq "Y"}
{ include file="modules/Bestsellers/menu_bestsellers.tpl" }
{/if}
{if $active_modules.Manufacturers ne "" and $config.Modules.manufacturers_menu eq "Y"}
{ include file="modules/Manufacturers/menu_manufacturers.tpl" }
{/if}
{include file="customer/special.tpl"}
{ include file="help.tpl" }


</td>

<td width="7" height="100%" rowspan="2" bgcolor="#000000">

</td>
<td height="8" width="1">
[img]images/spacer.gif[/img]</td>
</tr>
<tr>
<td bgcolor="#FFFFFF" width="390" height="100%">

<table>
<td>
{include file="location.tpl"}

{include file="dialog_message.tpl"}

{if $active_modules.Special_Offers ne ""}
{include file="modules/Special_Offers/customer/new_offers_message.tpl"}
{/if}

{include file="customer/home_main.tpl"}
{/if}

</td>
</table>



</td>
<td>
[img]images/spacer.gif[/img]</td>
</tr>
</table>
<table width="800" border="0" align="center" cellspacing="1">
<tr>
<td bgcolor="#000000"></td>
</tr>
</table>
</table>

</body>
</html>
__________________
x-cart 4.1.11 yay finally starting to get the hang of this stuff!!
site: www.slixaustralia.com.au
Reply With Quote
  #2  
Old 02-21-2006, 03:33 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

You need to get rid of this:

<table width= "800" height= "100%">

You control height and width of the site in rectangle_top.tpl, not home.tpl.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 02-21-2006, 07:17 PM
 
xtestedx xtestedx is offline
 

Advanced Member
  
Join Date: Oct 2005
Location: Sydney
Posts: 61
 

Default

thanx for the advice on the alignment stuff. (i wondered what rectangle top.tpl was with a name like that is makes sense though)

Do you know why the categories box wont sit to the top of the <td> box?


__________________
x-cart 4.1.11 yay finally starting to get the hang of this stuff!!
site: www.slixaustralia.com.au
Reply With Quote
  #4  
Old 02-22-2006, 03:27 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

could be all those slices in there. also try adding valign="top" to the table cell that contains the categories call.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #5  
Old 03-02-2006, 07:37 PM
 
xtestedx xtestedx is offline
 

Advanced Member
  
Join Date: Oct 2005
Location: Sydney
Posts: 61
 

Default

i worked it out it was a problem with the colspans so i took them out
__________________
x-cart 4.1.11 yay finally starting to get the hang of this stuff!!
site: www.slixaustralia.com.au
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 12:32 AM.

   

 
X-Cart forums © 2001-2020