X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   long category name in menu (https://forum.x-cart.com/showthread.php?t=35302)

virtualgeorge 11-10-2007 08:37 AM

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!!

balinor 11-10-2007 10:34 AM

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>

virtualgeorge 11-10-2007 11:25 AM

Re: long category name in menu
 
that worked for firefox, but internet explorer still does not align?
http://www.virtualgeorge.com/shop/home.php

balinor 11-10-2007 11:48 AM

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.

virtualgeorge 11-10-2007 12:02 PM

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.

balinor 11-10-2007 12:31 PM

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>

virtualgeorge 11-12-2007 09:08 AM

Re: long category name in menu
 
Thanks! That code worked for the alignment, I had left out the ul tags.


All times are GMT -8. The time now is 08:08 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.