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

Setting a bottom verticle menu box

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 10-16-2008, 07:52 AM
  hoosierglass's Avatar 
hoosierglass hoosierglass is offline
 

X-Adept
  
Join Date: Aug 2006
Location: Zionsville, IN
Posts: 974
 

Default Setting a bottom verticle menu box

I am trying to change around my verticle menu.

The basics to the box as it is set now is the vertmenutitlebox and the vertmenubox.
I am using an image for the background and need to put on a verticle menu bottom box. This is all very greek to me and before I screw something up could someone look and tell me if this is correct?

in my css file under verticle menu I added the following:
.VertMenuBottomBox {
BACKGROUND-IMAGE: url(images/menubottombg.gif);
BACKGROUND-COLOR: #9ec6de;
BACKGROUND-REPEAT: repeat-x;
BACKGROUND-POSITION: bottom;
HEIGHT: 7px;

in my menu.tpl file I added the line with the *** around it but did not put the *** in the file.


<table cellspacing="1" width="100%" class="VertMenuBorder">
<tr>
<td class="VertMenuTitle">
<table cellspacing="0" cellpadding="0" width="100%" height="27"><tr>
<td background="{$ImagesDir}/menu_bg.gif">{$link_begin}<img src="{$ImagesDir}/{if $dingbats ne ''}{$dingbats}{else}spacer.gif{/if}" class="VertMenuTitleIcon" alt="{$menu_title|escape}" />{$link_end}</td>
<td width="100%" background="{$ImagesDir}/menu_bg.gif">{if $link_href}<a href="{$link_href}">{/if}<font class="VertMenuTitle">{$menu_title}</font>{if $link_href}</a>{/if}</td>
</tr></table>
</td>
</tr>
<tr>
<td class="VertMenuBox">
<table cellpadding="{$cellpadding|default:"5"}" cellspacing="0" width="100%">
<tr><td>{$menu_content}<br /></td></tr>

*** <tr><td><td width="100%" background="{$ImagesDir}/menubottombg.gif"></td></tr>
</table> ***

</td></tr>
</table>

Is this correct or am I way off base?

Thanks for any help.

Mike
__________________
X-Cart Gold 4.7.7
Custom Work from www.luminointernet.com
www.indy-pen-dance.com
Reply With Quote
  #2  
Old 10-16-2008, 04:46 PM
  JWait's Avatar 
JWait JWait is offline
 

X-Man
  
Join Date: Nov 2005
Location: California
Posts: 2,440
 

Default Re: Setting a bottom verticle menu box

Try
<tr><td = class"VertMenuBottomBox">&nbsp;</td></tr>
instead of
<tr><td><td width="100%" background="{$ImagesDir}/menubottombg.gif"></td></tr>
(It appears you have an extra "<td>")

But first add
width: 100%;
to your css in the VertMenuBottomBox class.

This should make your cell (between the <td>'s) fill with the image, and be the width you specified (100%). You may or may not need the "&nbsp;" (which is an undefined space).
__________________
Two Separate X-Cart Stores
Version 4.4.4 Gold - X-AOM - Vivid Dreams Aquamarine (modified) - Linux
Mods - Newest Products - View All -, and a few others. Numerous upgrades from 4.0.x series.
Integrated with Stone Edge Order Manager + POS

Version 4.1.12 Gold (fresh install) - X-AOM - Linux
Mods - XCSEO free
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 09:29 AM.

   

 
X-Cart forums © 2001-2020