|
|
|
How do I make the top javascript list menu item style to be the same width for each item?
Return to Recent Questions
Q:
How do I make the top javascript list menu items to be the same width for each button?
Total javascript list menu 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 dhtml menu samples?
- March 17, 2009 - Can the menu dhtml 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 script drop down menus?
- May 15, 2009 - We want to set a specific width for each top level item in the web drop down menu
- Aug 24, 2009 - Can I create css horizontal drop down menu with the same width of the top items? Each item has a different width now...
- Oct 24, 2009 - Is it possible that items in menu vertical stay expanded in the same state?
- Dec 24, 2009 - I want to set the exact width for each menu item in css collapse
- Jan 05, 2010 - ..sub-items of my pop up menu using are all listed on the same line as the tabs
- Jan 06, 2010 - Is it possible to have a Vista styled menus in css with different width?
- Jan 25, 2010 - How I can style all dhtml menu editor items to have font bold when selected?
- Feb 20, 2010 - I want a different style for the non-clickable items in my css tree menu
|