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