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

modifying menu trouble with image

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 10-26-2005, 08:55 PM
 
mmoskva mmoskva is offline
 

eXpert
  
Join Date: Aug 2005
Location: Pennsylvania
Posts: 306
 

Default modifying menu trouble with image

Ive been searching in the forum for this answer but I can't find anything; and i need some help.
I am having trouble modifying my menus for my categories. In my css, I am editing the .VertMenuTitle ;I uploaded a graphic but it displays too big in the
menu box. I thought that if i inserted a bigger graphic for my menue headers the tables woudld adjust automatically to fit the graphic. It just looks really bad.

I dont know how to fix the problem. How do you get an menu to fit the size of an uploaded image.

here is a link to my site for the problem:
http://www.michaelmoskva.com/xcart/home.php[/url]
__________________
x-cart 4.0.16v
linux server
Reply With Quote
  #2  
Old 10-27-2005, 03:24 AM
  shan's Avatar 
shan shan is offline
 

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

Default

you could edit menu.tpl instead
__________________
Looking for a reliable X-cart host ?
You wont go wrong with either of these.

EWD Hosting
Hands On Hosting
Reply With Quote
  #3  
Old 10-27-2005, 04:41 AM
 
mmoskva mmoskva is offline
 

eXpert
  
Join Date: Aug 2005
Location: Pennsylvania
Posts: 306
 

Default

when I expand the menu width, it fits the picture but it overlap under the featured products. how do i fix that?
__________________
x-cart 4.0.16v
linux server
Reply With Quote
  #4  
Old 10-27-2005, 04:51 AM
  pauldodman's Avatar 
pauldodman pauldodman is offline
 

X-Guru
  
Join Date: Jul 2003
Location: Spain / UK
Posts: 3,062
 

Default

Hi,

You need to be editing the customer/home.tpl

The table that sets up the nav menu and the central space is in there.
__________________
Paul Dodman
e-business & m-commerce consultant
w: www.luminointernet.com
e: xcart@luminointernet.com

Professional X-Cart help, advice, support and services, specialists in Mobile X-Cart.
Reply With Quote
  #5  
Old 10-27-2005, 05:37 AM
 
mmoskva mmoskva is offline
 

eXpert
  
Join Date: Aug 2005
Location: Pennsylvania
Posts: 306
 

Default

I edited the customer/home.tpl to adjust the width of my menues like it was mentioned. when I expanded my menues wider the Menu Title were the images is locaed was duplicating itsimage when it got bigger.
how do it get rid of that?

http://www.michaelmoskva.com/xcart/home.php
__________________
x-cart 4.0.16v
linux server
Reply With Quote
  #6  
Old 10-27-2005, 05:41 AM
  pauldodman's Avatar 
pauldodman pauldodman is offline
 

X-Guru
  
Join Date: Jul 2003
Location: Spain / UK
Posts: 3,062
 

Default

I take it you are using the image set as a background?

Need a no-repeat command; suggest in your css file if you have a css tag on the menu?
__________________
Paul Dodman
e-business & m-commerce consultant
w: www.luminointernet.com
e: xcart@luminointernet.com

Professional X-Cart help, advice, support and services, specialists in Mobile X-Cart.
Reply With Quote
  #7  
Old 10-27-2005, 07:07 AM
 
mmoskva mmoskva is offline
 

eXpert
  
Join Date: Aug 2005
Location: Pennsylvania
Posts: 306
 

Default

I am using the menu.tpl file. when i insert an image to displays in the displays but the the name of the menu title "Category" gets shifted below it on a new line. how do i get the menu header name to appear on the image without shifting.

the image source tag that i used is: [img]skin1/images/blueboarderbg2.gif[/img]


http://www.michaelmoskva.com/xcart/home.php

Code:
<TABLE border="0" cellpadding="0" cellspacing="0" width="120%"> <TR> <TD class="VertMenuBorder"> <TABLE border="0" cellpadding="1" cellspacing="1" width="100%"> <TR> <TD class="VertMenuTitle">[img]skin1/images/blueboarderbg2.gif[/img] {if $link_href} <FONT class="VertMenuTitle">{$menu_title}</FONT> {else} <FONT class="VertMenuBoxNewsTitle">{$menu_title}</FONT> {/if} </TD> </TR> <TR> <TD class="VertMenuBox"> <TABLE border="0" cellpadding="5" cellspacing="0" width="100%"> <TR> <TD>{$menu_content} </TD></TR> </TABLE> </TD></TR> </TABLE> </TD></TR> </TABLE>
__________________
x-cart 4.0.16v
linux server
Reply With Quote
  #8  
Old 10-27-2005, 08:48 AM
  shan's Avatar 
shan shan is offline
 

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

Default

set the image as a background with the text on top

you cant have two things ocupy the same space
__________________
Looking for a reliable X-cart host ?
You wont go wrong with either of these.

EWD Hosting
Hands On Hosting
Reply With Quote
  #9  
Old 10-27-2005, 08:54 AM
  pauldodman's Avatar 
pauldodman pauldodman is offline
 

X-Guru
  
Join Date: Jul 2003
Location: Spain / UK
Posts: 3,062
 

Default

Also, for reasons we don't need to go into now - you need to set the image references properly:

skin1/images/

should be:

{$ImagesDir}/
__________________
Paul Dodman
e-business & m-commerce consultant
w: www.luminointernet.com
e: xcart@luminointernet.com

Professional X-Cart help, advice, support and services, specialists in Mobile X-Cart.
Reply With Quote
  #10  
Old 10-27-2005, 09:20 AM
 
mmoskva mmoskva is offline
 

eXpert
  
Join Date: Aug 2005
Location: Pennsylvania
Posts: 306
 

Default

how do you set an image as a background?
__________________
x-cart 4.0.16v
linux server
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 05:56 PM.

   

 
X-Cart forums © 2001-2020