|
|
How do I make the top down menu using javascript item style to be the same width for each item?
Return to Recent Questions
Q:
How do I make the top down menu using javascript items to be the same width for each button?
Total down menu using javascript width is 743px and I have 6 buttons I want the width
of each button to be fixed at 123px.
I set var menuWidth="743" but the width of each button based on its text.
A:
You should use individual item styles. For example:
var itemStyles = [
["itemWidth=123px"], //style 0
];
var menuItems = [
["Home","testlink.html", , , , , "0", , , ], //style 0
["Product Info","", "menu.files/icon1.gif", "menu.files/icon1o.gif", , , "0", , , ], //style 0
Return to Recent Questions
Related:
- March 16, 2009 - How can I change item width in the Vista templates in the css menu drop down?
- March 17, 2009 - Can the javascript menu example items be set so they are all the same width?
- March 21, 2009 - How can we increase the width of the vista style buttons of menu navigation?
- May 15, 2009 - We want to set a specific width for each top level item in the over drop down menu
- Aug 24, 2009 - Can I create css menu deroulant with the same width of the top items? Each item has a different width now...
- Oct 24, 2009 - Is it possible that items in javascript drop menu stay expanded in the same state?
- Dec 24, 2009 - I want to set the exact width for each menu item in mouse over drop down menu
- Jan 05, 2010 - ..sub-items of my javascript dhtml menus are all listed on the same line as the tabs
- Jan 06, 2010 - Is it possible to have a Vista styled horizontal javascript menu with different width?
- Jan 25, 2010 - How I can style all javascript drop down menus items to have font bold when selected?
- Feb 20, 2010 - I want a different style for the non-clickable items in my button menus
|