|
home / documentation / reference / childpercentover
ChildPerCentOver
- Description:
- The number of pixels that a child menu should overlap its parent
item horizontally, expressed as a percentage of the parent item's width
(i.e., 10 = 10%). Can also be null, in which case ChildOverlap
is used instead.
- Value:
- Number (may be fractional), or a JavaScript expression that returns
a number.
- Applies To:
- Menu Items.
- Browser Compatibility:
- ChildPerCentOver is supported in all browsers.
- Comments:
- ChildPerCentOver and ChildOffset are used together
by HierMenus to determine the position of a child menu when it is about to
appear.

If ChildPerCentOver is set to a negative number, then the
child menu is offset the horizontal distance away from the parent
menu item.
ChildPerCentOver overrides ChildOverlap. ChildPerCentOver
can be overridden by PositionChild.
ChildPerCentOver is always interpreted as a percentage of the parent item's
width.
- Examples:
// Ok:
ChildPerCentOver:8, // 8%
ChildPerCentOver:25, // 25%
ChildPerCentOver:(HM_Mac)?18:30,
// 18% in Mac, 30% all others
// Incorrect:
ChildPerCentOver:"7",
ChildPerCentOver:10%,
ChildPerCentOver:'(HM_Mac)?18:30',
// Do not quote expressions here
- Default:
- null
- See Also:
-
PositionChild,
ChildOffset,
ChildOverlap
|