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

Vertical Menu Width...

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

Member
  
Join Date: Aug 2006
Posts: 12
 

Default Vertical Menu Width...

Hi everyone..

I'm trying to get my vertical menus to have the same width.
I have header gifs for them all that are 166px and I would like the whole menu to be that width - I can't seem to get it exactly right though...

Here's what I'm using:

-------------------------------------
<TABLE border="0" cellpadding="0" cellspacing="0" width="166">
<TR>
<TD class="VertMenuBorder">
<TABLE border="0" cellpadding="1" cellspacing="1" width="166">
<TR>
<TD class="VertMenuTitle">&nbsp;&nbsp;{$link_begin}<IM G src="{$ImagesDir}/{if $dingbats ne ''}{$dingbats}{else}spacer.gif{/if}" width="166" height="24" border="0" align="left">{$link_end}&nbsp;&nbsp;
{if $link_href}
<A href="{$link_href}"><FONT class="VertMenuTitle">{$menu_title}</FONT></A>
{else}
<FONT class="VertMenuBoxNewsTitle">{$menu_title}</FONT>
{/if}
</TD>
</TR>
<TR>
<TD class="VertMenuBox">
<TABLE border="0" cellpadding="5" cellspacing="1" width="166">
<TR>
<TD>{$menu_content}<BR></TD></TR>
</TABLE>
</TD></TR>
</TABLE>
</TD></TR>
</TABLE>

-------------------------------------
Any thoughts?

Cheers, Heath.
__________________
Illumination Records
X-Cart 4.0.19
Windows XP.
Reply With Quote
  #2  
Old 10-21-2006, 04:29 AM
 
balinor balinor is offline
 

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

Default Re: Vertical Menu Width...

If you assign the width to the table cell itself in customer/home.tpl, the menus will automatically stretch to that width...you don't need to specify an actual width in the menu template other than 100% for the main table.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 10-21-2006, 04:40 PM
 
illumination illumination is offline
 

Member
  
Join Date: Aug 2006
Posts: 12
 

Default Re: Vertical Menu Width...

Thanks very much for that Balinor - I had a look through that template and I can't seem to find where to set the width for the vertical menus though....

---
{* $Id: home.tpl,v 1.67.2.10 2005/10/31 11:36:14 max 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 leftmargin="0" topmargin="0" rightmargin="0" bottomargin="0" marginwidth="0" marginheight="0"{if $body_onload ne ''} onload="{$body_onload}"{/if}>
{ include file="rectangle_top.tpl" }
{ include file="head.tpl" }
{if $active_modules.SnS_connector}
{include file="modules/SnS_connector/header.tpl"}
{/if}
<!-- main area -->
<TABLE border="0" width="100%" cellpadding="0" cellspacing="0" align="center">
<TR>
<TD width="6">&nbsp;</TD>
<TD width="150" valign="top">
{if $categories ne "" and ($active_modules.Fancy_Categories ne "" or $config.General.root_categories eq "Y" or $subcategories ne "")}
{ include file="customer/categories.tpl" }
<BR>
{/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" }
<IMG src="{$ImagesDir}/spacer.gif" width="150" height="1" border="0">
</TD>
<TD width="20">&nbsp;</TD>
<TD valign="top">
<!-- central space -->
{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"}
<!-- /central space -->
&nbsp;
</TD>
<TD width="20">&nbsp;</TD>
<TD width="150" valign="top">
{if $active_modules.SnS_connector && $sns_collector_path_url ne ''}
{include file="modules/SnS_connector/button.tpl"}
<BR>
{/if}
{if $active_modules.Feature_Comparison ne "" && $comparison_products ne ''}
{ include file="modules/Feature_Comparison/product_list.tpl" }
<BR>
{/if}
{if $active_modules.Users_online ne "" and $users_online}
{ include file="modules/Users_online/menu_users_online.tpl" }
<BR>
{/if}
{ include file="customer/menu_cart.tpl" }
<BR>
{if $login eq "" }
{ include file="auth.tpl" }
<BR>
{else}
{ include file="authbox.tpl" }
<BR>
{/if}
{ include file="news.tpl" }
{if $active_modules.Interneka ne ""}
<BR>
{ include file="modules/Interneka/menu_interneka.tpl" }
{/if}
<BR>
{ include file="poweredby.tpl" }
<BR>
<IMG src="{$ImagesDir}/spacer.gif" width="150" height="1" border="0">
</TD>
<TD width="6">&nbsp;</TD>
</TR>
</TABLE>
{ include file="rectangle_bottom.tpl" }
</BODY>
</HTML>
{/if}
__________________
Illumination Records
X-Cart 4.0.19
Windows XP.
Reply With Quote
  #4  
Old 10-22-2006, 04:14 AM
 
balinor balinor is offline
 

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

Default Re: Vertical Menu Width...

This line:

<TD width="150" valign="top">

Change it to

<TD width="166" valign="top">

Also change the spacer.gif at the bottom of the cell.

<IMG src="{$ImagesDir}/spacer.gif" width="150" height="1" border="0">

to

<IMG src="{$ImagesDir}/spacer.gif" width="166" height="1" border="0">
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #5  
Old 10-22-2006, 07:03 PM
 
illumination illumination is offline
 

Member
  
Join Date: Aug 2006
Posts: 12
 

Default Re: Vertical Menu Width...

Thanks again Balinor - I'm still having trouble with this though.
I've done as you said however no matter what I change the widths to it stays the same size - in fact the tables are BIGGER than 166 when they're set at 150 - but like i said if i make that number bigger or smaller it seems to have no effect.

It's very strange.
You can see it here: http://www.illuminationrecords.net/onlinestore/home.php

Any thoughts?
__________________
Illumination Records
X-Cart 4.0.19
Windows XP.
Reply With Quote
  #6  
Old 10-23-2006, 03:13 AM
 
balinor balinor is offline
 

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

Default Re: Vertical Menu Width...

Well, you have this set:

<TABLE border="0" cellpadding="2" cellspacing="2" width="100%">

in your menu.tpl. That is pushing the table out in either direction. Try removing the cellspacing and padding and see what happens.

Oh, and kill the music...nothing more annoying than getting blasted with music when you open a site and not being able to stop it (it restarts itself over and over in Firefox no matter how many times you push stop)
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #7  
Old 10-23-2006, 06:48 AM
 
carpeperdiem carpeperdiem is offline
 

X-Guru
  
Join Date: Jul 2006
Location: New York City, USA
Posts: 5,399
 

Default Re: Vertical Menu Width...

Illumination - you gotta lose the music...after blowing my speakers to shreds, I simply closed your page. If you're going to stream music, you have to wait a good while ater entry, and put a countdown in, or something - and allow the user to opt-out.
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4
Reply With Quote
  #8  
Old 10-24-2006, 12:36 AM
 
illumination illumination is offline
 

Member
  
Join Date: Aug 2006
Posts: 12
 

Default Re: Vertical Menu Width...

Thanks again Balinor - the site is still under construction and I did plan on fixing the music player but I will get on to it tonight.

I am still having trouble with this vertical menu thing though. I've reduced the cellpading and spacing to '0' but it still doesn't seem to make any difference.

Is there something else overriding it all? I'm tearing my hair out...
__________________
Illumination Records
X-Cart 4.0.19
Windows XP.
Reply With Quote
  #9  
Old 01-09-2009, 04:48 AM
 
ladybird ladybird is offline
 

Advanced Member
  
Join Date: Sep 2008
Posts: 93
 

Default Re: Vertical Menu Width...

HI can you also advise what controls the border on the auth.tpl in the vertical right menu - I am trying to create a similar bordered table below.
__________________
x-cart gold 4.1.9
x-cart gold 4.1.5
www.makeuwell.com.au
www.amberbebe.com
Sydney Australia
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:50 PM.

   

 
X-Cart forums © 2001-2020