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

long category name in menu

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #11  
Old 11-10-2007, 08:37 AM
 
virtualgeorge virtualgeorge is offline
 

Member
  
Join Date: Sep 2007
Posts: 27
 

Default Re: long category name in menu

So if I add the <li> tags to the menu, then in the css file I could add:

ul {
list-style-image: url(bullet.gif);
}

to create the bullet image for each line on the menu, right?


I added the list tags but the text is still not aligned?


thanks!!
__________________
Version 4.2.0 Gold
Reply With Quote
  #12  
Old 11-10-2007, 10:34 AM
 
balinor balinor is offline
 

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

Default Re: long category name in menu

It would go inside the foreach, like this:

<li><font class="CategoriesList"><a href="home.php?cat={$c.categoryid}" class="VertMenuItems iconlink">{$c.category}</a></font></li>
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #13  
Old 11-10-2007, 11:25 AM
 
virtualgeorge virtualgeorge is offline
 

Member
  
Join Date: Sep 2007
Posts: 27
 

Default Re: long category name in menu

that worked for firefox, but internet explorer still does not align?
http://www.virtualgeorge.com/shop/home.php
__________________
Version 4.2.0 Gold
Reply With Quote
  #14  
Old 11-10-2007, 11:48 AM
 
balinor balinor is offline
 

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

Default Re: long category name in menu

Get rid of the style sheet specifying the bullet.gif and see if the default bullet behaves the same way.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #15  
Old 11-10-2007, 12:02 PM
 
virtualgeorge virtualgeorge is offline
 

Member
  
Join Date: Sep 2007
Posts: 27
 

Default Re: long category name in menu

Yes, tried it with & without bullet image, same result.
Currently I have nothing in the css specifying a bullet image.
__________________
Version 4.2.0 Gold
Reply With Quote
  #16  
Old 11-10-2007, 12:31 PM
 
balinor balinor is offline
 

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

Default Re: long category name in menu

Try this:
<ul>
{foreach from=$categories item=c}
<li><font class="CategoriesList"><a href="home.php?cat={$c.categoryid}" class="VertMenuItems iconlink">{$c.category}</a></font></li>
{/foreach}
</ul>
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #17  
Old 11-12-2007, 09:08 AM
 
virtualgeorge virtualgeorge is offline
 

Member
  
Join Date: Sep 2007
Posts: 27
 

Default Re: long category name in menu

Thanks! That code worked for the alignment, I had left out the ul tags.
__________________
Version 4.2.0 Gold
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:23 AM.

   

 
X-Cart forums © 2001-2020