|
home / documentation / reference / borderwidth
BorderWidth
- Description:
- The width, in pixels, of the menu's border.
- Value:
- Integer, or JavaScript expression that returns an integer.
Negative values are not allowed.
- Applies To:
- Menus.
- Browser Compatibility:
- BorderWidth is supported in all browsers.
- Comments:
- Setting BorderWidth will automatically set BorderTopWidth,
BorderRightWidth, BorderBottomWidth, and BorderLeftWidth
in those browsers that support those parameters. Therefore, it is important to supply
the BorderWidth parameter before you supply those more specific
settings.
You must always specify BorderWidth as an integer, or a
JavaScript expression that returns an integer. Do not use quoted strings or
non-numerical characters when defining BorderWidth.
BorderWidth 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.
- Examples:
// Ok:
BorderWidth:5,
BorderWidth:0,
BorderWidth:(HM_NS4)?3:2, // 3 if NS4, 2 otherwise
// Incorrect:
BorderWidth:3.8,
BorderWidth:-3,
BorderWidth:"2", // quotes not allowed
BorderWidth:"(HM_NS4)?3:2", // no quoted expressions
- Default:
- 2
- See Also:
-
SeparatorSize,
BorderTopWidth,
BorderBottomWidth,
BorderRightWidth,
BorderLeftWidth
|