Back To Start Of Archive
Taken From The Forum: Help & Support for DHTML Menu Version 5+
Forum Topic: Click to view post
Last Updated: Saturday July 14 2012 - 06:07:12
Even spacing of different-sized menu items
Poster: jgold723
Dated: Thursday February 5 2009 - 19:40:44 GMT
I'm trying to get the items in my horizontal menu to spread out evenly. using menuwidth=100% and itemwidth=100%, I've gotten them to spread out, but the spacing between the various words differs -- I suspect because the menu is setting a single width for each item based on the width of the widest item.
Is there a way to get the same amount of space between each item?
Like this:
ITEM 1 THIS IS ITEM 2 THIS IS YET A LONGER ITEM ITEM S AND A VERY LONG ITEM
Re: Even spacing of different-sized menu items
Poster: jgold723
Dated: Thursday February 5 2009 - 20:05:44 GMT
Oops -- sorry, my example didn't work very well because the browser ignores the extra spaces.
But hopefully my words explain it sufficiently. I want the same amount of space between the different menu items, regardless of their individual length.
John
Re: Even spacing of different-sized menu items
Poster: Andy
Dated: Friday February 6 2009 - 9:37:19 GMT
Hi,
You can add itremwidth to your menu items to get them to use a specifieds width, something like this:
aI("text=Sample;itemwidth=200");
This will set the width to 200 pixels for the single menu item. If you want to apply an itemwidth to all meun items, you can add itemwidth to either a menus style or to the menu itself.
HTH,
Andy