View Full Version : Anylink Drop Down Menu Width Problem

01-06-2008, 12:01 AM
1) Script Title: Anylink Drop down Menu

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex1/dropmenuindex.htm

3) Describe problem:
I'm using this menu and it's working great, but there's an issue with the width. We are passing in variables for the menu items, and users can create their own menu items, so one item may be one word and one item maybe be 5 words. I have to set the width, but when someone adds a longer item to the list, it wraps the text. Doesn't look good. Why wouldn't it just resize for more width space? or can i set it that way? I tried doing width="100%" and in IE it doesn't work. Can anyone help?

01-07-2008, 10:41 AM
When someone adds a longer item, is that to an existing menu with a "width" already defined, or a whole new menu? Either way, you can change the drop down menu's width dynamically by calling:


You'll still need to know what explicit value to enter for the new width based on what the user is adding inside the menu, however.