(c) 2016, Deluxe-Menu.com
Search  
Ctrl+F2 - enter/switch menu | Arrow keys - navigate | Esc - exit menu  
  Support
  FAQ
  Contacts
  About Us
  Recent Questions


 

    I can't seem to figure out how to specify the width of individual javascript pulldown menu items.

Return to Recent Questions


Q: I can't seem to figure out how to specify the width of individual javascript pulldown menu items. I would like to specify that each menu item on the horizontal take up just 113px regardless of the number of characters in the item. Is there a way of doing that?

A: You should use var itemStyles to set an individual item style. For example:

var itemStyles = [
["itemWidth=113px"]
];

var menuItems = [
["text 1", "link", "icon1", "icon2", "tip", "target", "0"],
["text 2", "link", "icon1", "icon2", "tip", "target", "0"],
["text 3", "link", "icon1", "icon2", "tip", "target", "0"],
];

Where "0" - style number in itemStyles that contains the parameters for items width.

Use Deluxe Tuner GUI to create and assign individual styles.





Return to Recent Questions

Related:
Bootstrap Grid Tutorial Bootstrap Accordion Table  |  Bootstrap Form Button  |  Bootstrap Image Gallery  |  Bootstrap Glyphicons List  |  Bootstrap List View  | 
Copyright (c) 2019, Deluxe-Menu.com
Home  |  Product Info  |  Samples  |  Download  |  Purchase  |  FAQ  |  Site Map  |  Terms of Use  |  Write Us
All rights reserved. Best AI Website Builder | Free AI Website Builder | AI Website Builder | AI Website Generator | AI web design generator