How do I add more space between the top items in my javascript for menu?
Return to Recent Questions
Q:
How do I add more space between the top javascript for menu items?
I have tried adding to the Item Appearance, itemSpacing and itemPadding.
A:
You can try to paste a separator in the javascript for menu.
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 should also add separators within menuItems:
var menuItems = [
["item 1"],
["-"], // this item is separator
["item 2"],
];
You can also set multiple values for the following parameter:
var itemPadding = "2px 15px 5px 5px";
(top, right, bottom, left)
Return to Recent Questions
Related:
|