Menu width...

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
irishis
Beginner
Beginner
Posts: 2
Joined: Mon Dec 04, 2006 4:55 pm

Menu width...

Post by irishis »

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.
vikenk
Mega Advanced
Mega Advanced
Posts: 297
Joined: Tue Nov 29, 2005 7:38 pm

Post by vikenk »

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.
trichy
Beginner
Beginner
Posts: 4
Joined: Thu Dec 07, 2006 2:11 pm

Post by trichy »

But the ITEMWIDTH changes the width of all items :| I was wondering is it possible somehow to customize every singel item :roll:
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

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
vikenk
Mega Advanced
Mega Advanced
Posts: 297
Joined: Tue Nov 29, 2005 7:38 pm

Post by vikenk »

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: Select all

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.
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

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

Ruth
vikenk
Mega Advanced
Mega Advanced
Posts: 297
Joined: Tue Nov 29, 2005 7:38 pm

Post by vikenk »

Ruth, you beat me to it!

:D
Post Reply