|
|
Right now the buttons are tight together, how do I create a gap between each dhtmlmenu button?
Return to Recent Questions
Q:
I just noticed as well that I cannot change the spacing of the buttons.
Right now the buttons are tight together, how do I create a gap between each dhtmlmenu button?
A:
You can paste the separator.
Please, see the following parameters:
//------- Separators -------
var separatorWidth = "10";
var separatorHeight = "20";
var separatorAlignment = "center";
var separatorImage = "C";
var separatorVWidth = "150";
var separatorVHeight = "10%";
var separatorVImage = "image.jpg";
You can create separators using menuItems, for example:
var menuItems = [
["item 1"],
["-"], // this item is separator
["item 2"],
];
You can also use this parameter:
var itemPadding = "4px";
You can also set multiple values, for example:
"2px 15px 5px 5px";
(top, right, bottom, left)
Return to Recent Questions
Related:
- Sep 22, 2006 - How to call the function in my java script menu?
- Oct 20, 2006 - Can you let me know, if javascript moving menu supports search engine friendly code?
- Nov 19, 2006 - How to display my javascript top menu without a border, but my subitems all have a border.
- Dec 03, 2006 - expandable menu doesn’t work in Firefox or Netscape. It works fine in Internet Explorer.
- Dec 22, 2006 - I'm hoping that the graphic would appear rather than a colored cell in menu samples.
- Jan 07, 2007 - Some graphic files need to draw the top-level horizontal menu bar are missing.
- Jan 25, 2007 - How I can change the background of the top level mouse over menu names?
- Feb 10, 2007 - Is there any functionality for tree menu script to show/hide specific branches?
- Feb 26, 2007 - The expand menu works on our integration system but not on the production system.
- March 14, 2007 - I need to be able to either automatically wrap the line in the dhtml menu tree
- April 02, 2007 - Where can I change the font size in the main menu drop down javascript?
|