|
home / documentation / reference / childoffset
ChildOffset
- Description:
- The number of pixels that a child menu is offset from its parent
item vertically.
- Value:
- Integer, or a JavaScript expression that returns an integer.
- Applies To:
- Menu Items.
- Browser Compatibility:
- ChildOffset is supported in all browsers.
- Comments:
- ChildOffset and ChildOverlap are used together
by HierMenus to determine the position of a child menu when it is about to
appear.

If ChildOffset is set to a negative number, then the
child menu is offset the vertical distance above the parent
menu item. ChildOffset is always based on the top of the parent
menu item, which is just beneath the menu border or the
separator of the item above it.
ChildOffset can be overridden by PositionChild.
ChildOffset is always interpreted as pixels.
- Examples:
// Ok:
ChildOffset:3,
ChildOffset:10,
ChildOffset:(HM_Mac)?10:12,
// 10 in Mac, 12 all others
// Incorrect:
ChildOffset:"7",
ChildOffset:10px,
ChildOffset:'(HM_Mac)?10:12',
// Do not quote expressions here
- Default:
- 10
- See Also:
-
PositionChild,
ChildOverlap,
ChildPerCentOver
|