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

itemwidth - at least as wide as ..

Poster: christopherib
Dated: Wednesday July 23 2008 - 5:38:16 BST


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.


Re: itemwidth - at least as wide as ..

Poster: Ruth
Dated: Wednesday July 23 2008 - 17:46:59 BST


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.