|
home / documentation / reference / menupaddingtop
MenuPaddingTop
- Description:
- The distance, in pixels, between the menu's top border and the
top of its first menu item.
- Value:
- Integer, or JavaScript expression that returns an integer.
Negative values are not allowed.
- Applies To:
- Menus.
- Browser Compatibility:
- MenuPaddingTop is not supported in Netscape 4.x.
- Comments:
- You must always specify MenuPaddingTop as an integer, or a
JavaScript expression that returns an integer. Do not use quoted strings or
non-numerical characters when defining MenuPaddingTop.
MenuPaddingTop is always interpreted by HM as pixels.

The color that is displayed in the MenuPadding is controlled via
MenuBGColor. If MenuBGColor is left null, then
the MenuPadding assumes the default color as specified in the
page or style sheet settings for the menu elements (usually transparent).
- Examples:
// Ok:
MenuPaddingTop:5,
MenuPaddingTop:0,
MenuPaddingTop:(HM_NS4)?3:2, // 3 if NS4, 2 otherwise
// Incorrect:
MenuPaddingTop:3.8,
MenuPaddingTop:-3,
MenuPaddingTop:"2", // quotes not allowed
MenuPaddingTop:"(HM_NS4)?3:2",
// no quoted expressions
- Default:
- 0
- See Also:
-
MenuBGColor,
MenuPaddingRight,
MenuPaddingBottom,
MenuPaddingLeft
|