|
home / documentation / reference / fontweight
FontWeight
- Description:
- The weight (degree of text "boldness") for text that appears in menu items.
- Value:
- String, "", or JavaScript expression that returns a string/"".
- Applies To:
- Menu Items.
- Browser Compatibility:
- FontWeight is supported in all browsers, though not all browsers
may recognize all possible CSS values (especially Netscape 4.x).
- Comments:
- FontWeight should be applied as a string, which means the
value you supply should always be in quotes. Allowed values for FontWeight
are the same as those allowed in the standard CSS font-weight property
(see the W3C Specs)
and in fact, the value you supply is transferred as is to the JavaScript
fontWeight property for each menu item.
- Examples:
// Ok:
FontWeight:"bold",
FontWeight:"900",
FontWeight:"", // use style sheet default
FontWeight:(HM_IE)?"900":"700", // 900 in IE; else 700
// Incorrect:
FontWeight:"fat", // must be valid identifier
FontWeight:800, // quotes required
FontWeight:'(HM_IE)?"900":"700"', // no quoted expressions here
- Default:
- "normal"
- See Also:
-
FontStyle,
FontFamily,
FontSize,
FontColor,
FontColorOver,
FontColorSelected,
Using Classes Mini-Tutorial
|