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

Menu background images other than the titles ?

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 08-04-2003, 06:00 AM
  supanewb's Avatar 
supanewb supanewb is offline
 

Advanced Member
  
Join Date: Jul 2003
Location: Australia
Posts: 51
 

Default Menu background images other than the titles ?

Hello,

I have images behind my menu titles but I was wondering if you can also add a background image to the menu body so to speak.

I was able to achieve this in the dialogue area thanks to a funkydunk post but I'm damned if I can repeat it for the menu without upsetting the menu title pix. Does anybody have any ideas ?

I'm using the #3.4.4.
Reply With Quote
  #2  
Old 08-04-2003, 09:02 AM
  adpboss's Avatar 
adpboss adpboss is offline
 

X-Man
  
Join Date: Feb 2003
Location: Ontario, Canada
Posts: 2,389
 

Default

It might be because I think you can set a background image for a table, but the menu set is composed of 1 table with two or more cells.

Try splitting the menu header and menu body into separate tables. Then the background behaviour for the menu body cell/table should work.

I'm not expert at this so backup before you do anything.
Reply With Quote
  #3  
Old 08-04-2003, 09:22 AM
  shan's Avatar 
shan shan is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Birmingham, UK
Posts: 6,163
 

Default

just set the background property for the table cell not the whole table
__________________
Looking for a reliable X-cart host ?
You wont go wrong with either of these.

EWD Hosting
Hands On Hosting
Reply With Quote
  #4  
Old 08-04-2003, 09:23 AM
  adpboss's Avatar 
adpboss adpboss is offline
 

X-Man
  
Join Date: Feb 2003
Location: Ontario, Canada
Posts: 2,389
 

Default

Yeah, or that might work.

Reply With Quote
  #5  
Old 08-04-2003, 09:46 AM
 
funkydunk funkydunk is offline
 

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

Default

Define a new style in the skin1.css

.FancyMenuBackground {
background-image: url(images/extra/bg_star.gif);
background-repeat: no-repeat;
}

Then in menu.tpl change to:
Code:
<TABLE border="0" cellPadding="2" cellSpacing="0" width="100%"> <TR> <TD width="29" height="19" valign="middle" class="VertMenuTitle"> [img]{$ImagesDir}/extra/menu_sun.gif[/img] </TD> <TD align="left" valign="center" class="VertMenuTitle" width="90%">{$menu_title}</TD> </TR> <tr> <TD class="FancyMenuBackground" colspan="2">{$menu_content}</TD> </TR> </TABLE>

That should do it
__________________
ex x-cart guru
Reply With Quote
  #6  
Old 08-05-2003, 01:17 AM
  supanewb's Avatar 
supanewb supanewb is offline
 

Advanced Member
  
Join Date: Jul 2003
Location: Australia
Posts: 51
 

Default

Thanks Guys I will give it a whirl and see how it looks.
Reply With Quote
  #7  
Old 08-05-2003, 06:39 AM
  supanewb's Avatar 
supanewb supanewb is offline
 

Advanced Member
  
Join Date: Jul 2003
Location: Australia
Posts: 51
 

Default

okydoky,

having a few minor problems. I have tried implementing the code and my right hand menu background is missing, that is the page background is showing through. The left side menu is unchanged.

here are some before and after shots of my menu.tpl . The CSS stuff was easy so I assume there are no probs there, the syntax seems ok.

B4
Code:
<TABLE border=0 cellPadding=8 cellSpacing=0 width="100%"> <TR> {if $link_href} <TD class=VertMenuTitle background="{$ImagesDir}/dingbats_categorie.gif" height=30 valign=center width=80%><font class=VertMenuTitle>{$menu_title}</font></TD> {else} <TD class=VertMenuTitle background="{$ImagesDir}/dingbats_categorie.gif" height=30 valign=center width=80%><font class=VertMenuBoxNewsTitle>{$menu_title}</font></TD> {/if} </TR> <TR> <TD colspan="2" class=VertMenuBox>{$menu_content} </TD></TR> </TABLE>



and after





Code:
<TABLE border=0 cellPadding=8 cellSpacing=0 width="100%"> <TR> {if $link_href} <TD class=VertMenuTitle background="{$ImagesDir}/dingbats_categorie.gif" height=30 valign=center width=80%><font class=VertMenuTitle>{$menu_title}</font></TD> {else} <TD class=VertMenuTitle background="{$ImagesDir}/dingbats_categorie.gif" height=30 valign=center width=80%><font class=VertMenuBoxNewsTitle>{$menu_title}</font></TD> {/if} </TR> <TR> <TD class="FancyMenuBackground"colspan="2" class=VertMenuBox> {$menu_content} </TD></TR> </TABLE>

What do you think ? Is there something obvious I am missing or am I just too moded out on this template? thanks for your patience

cheers
supanewb
Reply With Quote
  #8  
Old 08-05-2003, 07:26 AM
 
funkydunk funkydunk is offline
 

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

Default

something obvious - you have left the class=VertMenuBox in aswell so that table cell has two classes assigned to it. The latter being the one that it applies.

Take that out and all will work fine
__________________
ex x-cart guru
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 11:34 AM.

   

 
X-Cart forums © 2001-2020