Is it possible to have a Vista styled dropdown menu javascript with different width?
Return to Recent Questions
Q:
I'm trying out your cool dropdown menu javascript.
I'm trying to rebuild my menu like this one:
http://dhtml-menu.com/menu/data-templates/vista-style-3-03-template-sample.html
I have a problem. In your example all the buttons have the same
width. In my case, I have some really long labels and
some short ones. In some cases my text is larger than the button.
Is it possible to have a Vista styled menu with different
width for the buttons?
A:
See images in Vista Templates have the fixed width and height (92 x 21).
If you want to change items' width/height you should change images.
btn_cyan.gif
btn_cyan2.gif
You can do it in any graph editor, for example in Adobe PhotoShop.
You should also change items width in your Individual Item Style.
var itemStyles = [
["itemWidth=92px","itemBorderWidth=0","fontStyle=normal 11px
Tahoma","fontColor=#FFFFFF,#FFFFFF","itemBackImage=btn_cyan.gif,btn_cyan2.gif"],
];
You can do it in DHTML Tuner.
Return to Recent Questions
Related:
|