(c) 2007, DHTML-Menu.com
 
   
   
  Support
  Recent Questions
  Write To Support
 

    We want to set a specific width for each top level item in the drop down javascript menu

Return to Recent Questions


Q: We figured out how to adjust the alignment of the text.

Right now the width of the drop down javascript menu is based on the length of the item in that hotspot.

We would like to set a specific width for each top level item in the drop down javascript menu.


A: You should create individual item styles and assign them to the top drop down javascript menu items. For example:

var itemStyles = [
["itemWidth=123px"], //style 0
["itemWidth=150px"], //style 1
];

var menuItems = [

["Home","testlink.html", , , , , "0", , , ], //style 0
["Product Info","", "menu.files/icon1.gif", "menu.files/icon1o.gif", , , "0", , , ], //style 0
["Text","", "menu.files/icon1.gif", "menu.files/icon1o.gif", , , "1", , , ], //style 1

Try that.





Return to Recent Questions

Related:
   
Copyright (c) 2012, DHTML-Menu.com
Home  |  Product Info  |  Samples  |  Download  |  Purchase  |  FAQ  |  Site Map  |  Write Us
All rights reserved. bootstrap template | top website builders | homepage baukasten | creer un site mobile | HTML5 Video Player