How do I set the width of sub menu items to be the same width as the parent horizontal dhtml menu item?
Return to Recent Questions
Q:
How do I set the width of sub menu items to be the same width
as the parent horizontal dhtml menu item? I can see how to set a px or % width, and when the
at least one sub menu item exceeds the parent item the the entire menu
stretches to that width (which is fine), but what about the instance
where the sub menu items are not as wide as the parent item - in this
case, the sub menu is not as wide as the parent item, which looks odd.
Is there any way to force it to be (at least) the same width as the
parent item?
I hope this is all clear to you, if not, please give me a shout for
clarification.
A:
You can set exact width for your top items using Individual Item Styles and set submenu width using
Individual Submenu Style.
You should also set the following parameter:
var noWrap=0;
Return to Recent Questions
Related:
- Sep 11, 2006 - If I use doctype the settings of the submenus in javascript dropdown menu get lost.
- Sep 15, 2006 - Are vertical menus also supported? I don't see any in the javascript menu examples.
- Sep 18, 2006 - The submenus of the cross frame menu are offset by about 100 pixels to the right.
- Sep 23, 2006 - Is it possible that javascript drop down menus doesn't put anything on the local computer?
- Sep 24, 2006 - If there is a way of establishing the width at "runtime" in the javascript dynamic menu?
- Sep 26, 2006 - Why is the submenu has a different colour than menu items in the javascript menu bar?
- Sep 26, 2006 - Is there a way to change the height of the main buttons in my simple dhtml menu.
- Oct 03, 2006 - Do I have the ability to change colors for the menus and the sub menus in the cascade menu.
- Oct 07, 2006 - How do you change the back ground color of the javascript horizontal menus?
- Oct 12, 2006 - Can I create a scroll vertical menu on the right side and the subnav popout on the LEFT?
- Oct 15, 2006 - There's some problems when we use two javascript horizontal menus.
|