|
home / documentation / reference / separatorsize
SeparatorSize
- Description:
- The width (or height), in pixels, of the border that appears
between menu items.
- Value:
- Integer, or JavaScript expression that returns an integer.
Negative values are not allowed.
- Applies To:
- Menu Items.
- Browser Compatibility:
- SeparatorSize is supported in all browsers.
- Comments:
- You must always specify SeparatorSize as an integer, or a
JavaScript expression that returns an integer. Do not use quoted strings or
non-numerical characters when defining SeparatorSize.
SeparatorSize is always interpreted by HM as pixels.
Do not confuse borders with separators. In HierMenus
jargon, borders surround each menu itself, while separators
are the bars between individual menu items.
When applied to specific menu items, SeparatorSize affects the size
of the border beneath the menu item (for vertical menus) or to the right
of the menu item (for horizontal menus).
- Examples:
// Ok:
SeparatorSize:5,
SeparatorSize:0,
SeparatorSize:(HM_NS4)?3:2, // 3 if NS4, 2 otherwise
// Incorrect:
SeparatorSize:3.8,
SeparatorSize:-3,
SeparatorSize:"2", // quotes not allowed
SeparatorSize:"(HM_NS4)?3:2", // no quoted expressions
- Default:
- 1
- See Also:
-
BorderWidth
|