Milonic provide full featured pull down web menus for some of the worlds largest companies
click here to see what it can do for you

Download Milonic DHTML Menu
Buy Milonic DHTML Menu

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:47

Menu width...


Poster: irishis
Dated: Monday December 4 2006 - 16:05:08 GMT

hi I found via a search how to make the menu width fit the page but that just makes the menu bar fit the buttons are still little, is there a way to adjust width of buttons on the meu?
Thank you.


Poster: vikenk
Dated: Monday December 4 2006 - 18:28:44 GMT

Hello,

It helps if you have an example for us to look at :>)

Just taking a guess, I would say that what you want is to set the ITEMWIDTH value so you can customize the width of each "button". It works the same as MENUWIDTH but it only affects the menu item, not the whole menu.

Hope this helps.


Poster: trichy
Dated: Friday December 8 2006 - 2:44:13 GMT

But the ITEMWIDTH changes the width of all items :| I was wondering is it possible somehow to customize every singel item :roll:


Poster: Ruth
Dated: Friday December 8 2006 - 3:16:47 GMT

Hi,

Sure, you'd just use the itemwidth parameter as an item property, that is, you'd put it into the aI string.

You might take a look at the properties page links below my name. A lot of properties can be applied either as a style, a menu, or an item property. Some are properties that only apply in certain areas, so you should check those lists when you want to do something with a particular thing :)

Ruth


Poster: vikenk
Dated: Friday December 8 2006 - 3:16:58 GMT

Quote:
But the ITEMWIDTH changes the width of all items. I was wondering is it possible somehow to customize every singel item

Yes, it is. You need to add the itemwidth property to the item width and not the global style, for example:

Code:
with(milonic=new menuname("Information")){
style=sub;
aI("itemwidth=200px;text=F.A.Q.;url=faq.htm");
aI("itemwidth=150px;text=whatever;url=whatever.htm;");
}


Try that and let us know how it works.


Poster: Ruth
Dated: Friday December 8 2006 - 3:18:18 GMT

:lol: Wow, Vikenk, we must have clicked the submit at exactly the same time :)

Ruth


Poster: vikenk
Dated: Friday December 8 2006 - 3:20:07 GMT

Ruth, you beat me to it!

:D