![]() |
long category name in menu
I have a shop here: virtualgeorge.com/shop/home.php
The menus look like this, when a category name is long and wraps to the next line, it starts the continuing line under the bullet image.
But I want it indented so all the text liines up, I want it to look like this
thanks! |
Re: long category name in menu
Are you using actual <li> tags or an image? An <li> will automatically wrap the way you want it to.
|
Re: long category name in menu
I don't know? Where would I look? Categories.tpl or menu.tpl ?
|
Re: long category name in menu
customer/categories.tpl is the default category menu.
|
Re: long category name in menu
Can I post what I have for the template? Its only 18 lines. Or would that help?
thanks! |
Re: long category name in menu
Yep, that would help :)
|
Re: long category name in menu
Code:
{* $Id: categories.tpl,v 1.26 2005/11/17 06:55:37 max Exp $ *} |
Re: long category name in menu
What is this?
class="VertMenuItems iconlink" Do you have some sort of background image set in skin1.css? |
Re: long category name in menu
That is for the bullet image
.iconlink { background:transparent url(images/bullet.gif) no-repeat scroll left center; padding-left:10px; } |
Re: long category name in menu
Yea, you are going to want to get rid of that or else it won't wrap correctly. You need to add an order list (<li> tags) to your menu.
|
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!! |
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> |
Re: long category name in menu
that worked for firefox, but internet explorer still does not align?
http://www.virtualgeorge.com/shop/home.php |
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.
|
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. |
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> |
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:03 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.