itemwidth - at least as wide as ..

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
christopherib
Beginner
Beginner
Posts: 3
Joined: Sat Jun 07, 2008 9:20 pm

itemwidth - at least as wide as ..

Post by christopherib »

Hello,

I have a menu with 8 first level options and then from most of these come a second level of options.

The menu is horizontal and each first level item is 100px wide.

For the sub menus some of the text item links are very short, others are quite long.

What I want is for the sub menus to be at least 100px wide (i.e the same width as the primary menu option it belongs to) but if the text is long and therefore wider than 100px allows for the menu option to automatically expand as to prevent any sort of wrapping.

If I remove the itemwidth=100; line then it works fine, except for the sub menus that only contain options that are only a few characters long mean that the sub menu isn't as wide as the main option and it looks ugly.

I hope I've explained this clearly enough. Any help would be appreciated.

Chris
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Re: itemwidth - at least as wide as ..

Post by Ruth »

Hi,

Itemwidth is a style, menu or item property. You could leave out the itemwidth in the style and place it in the submenus that have short items thereby making them 100px wide, while leaving it out of the submenus that have longer items so they will get wider.

If you need more help you would need to provide a page with your menu on it so we can test.

Ruth
Post Reply