|
|
How can I change the size and color of the font for the main items in the simple dhtml menu, not the drop downs?
Return to Recent Questions
Q:
My question is how can I change the size and color of the font for the
main items in the simple dhtml menu, not the drop downs?
A:
You can use Individual Item Styles in that case:
http://deluxe-menu.com/individual-item-styles-info.html
Set the style you need for subitems:
var fontStyle=["normal 11px Trebuchet MS, Tahoma","normal 11px Trebuchet MS, Tahoma"];
Set the style you need for main items:
var itemStyles = [
["fontStyle='bold 12px Arial','bold 12px Arial'"], // style 0
];
Assign this style for main items:
var menuItems = [
["Scenic album","scenic-album.htm", "", "", "", "", "0", "", "", "", "", ], //assign style 0
["|Item 8","", "", "", "", "", "", "", "", "", "", ],
["|Item 9","", "", "", "", "", "", "", "", "", "", ], >
["|Item 10","", "", "", "", "", "", "", "", "", "", ],
["Floral album","floral-album.htm", "", "", "", "", "0", "", "", "", "", ], //assign style 0
["Southwest album","southwest-album.htm", "", "", "", "", "0", "", "", "", "", ], //assign style 0
["Wildlife album","wildlife-album.htm", "", "", "", "", "0", "", "", "", "", ], //assign style 0
];
Return to Recent Questions
Related:
- Sep 02, 2006 - Little vertical spacers between menu items in the drop down 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 01, 2006 - All of the items in html pull down menu are different sizes.
- 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 26, 2006 - I would like to load an iframe into one of the items in oncontextmenu.
- Oct 27, 2006 - In IE 6.0 and Firefox 1.5.0.4, the submenus of my dhtml dropdown menu are not visible
- Oct 28, 2006 - Subitems of the mouseover menu don't close when the mouse goes away...
- Oct 29, 2006 - When I purchse your javascript select menu, does this include any future updates?
- Oct 30, 2006 - I don't see on my website dhtml mouseover menu that I saw on my local machine.
|