Please Note:
HierMenus is protected by copyright laws. Use of the HierMenus code requires a paid licensing agreement.
Click Here to Register

Site Navigation
Bulletins
About
Documentation
FAQ
Samples
Known Issues
Technology Jobs

internet.commerce

Partner With Us














          
internet.com

IT
Developer
Internet News
Small Business
Personal Technology
International

Search internet.com
Advertise
Corporate Info
Newsletters
Tech Jobs
E-mail Offers

 
HierMenusCentral Enhance the Functionality of Your Web Site with DHTML HierMenus.
    

home / documentation / reference / fontsize

FontSize

Description:
The size designation for text that appears in menu items.

Value:
String, "", or JavaScript expression that returns a string/"".

Applies To:
Menu Items.

Browser Compatibility:
FontSize is supported in all browsers, though not all browsers may recognize all possible CSS values (especially Netscape 4.x).

Comments:
FontSize should be applied as a string, which means the value you supply should always be in quotes. Allowed values for FontSize are the same as those allowed in the standard CSS font-size property (see the W3C Specs) and in fact, the value you supply is transferred as is to the JavaScript fontSize property for each menu item.

Note that a length indicator, i.e., "pt," "px," "%," etc. must be included in FontSize, which is why the value itself must be provided as a string (unlike most other HierMenus numerical indicators). See the examples below. The ability to specify a length indicator is new to HierMenus version 6 and allows you to specify that your font size be set in pixels, ems, percentages, or any other legal CSS representation.

Examples:
// Ok:
FontSize:"10pt",
FontSize:"12px",
FontSize:"",                             // use style sheet default
FontSize:(HM_NS4&&HM_Mac)?"14px":"10px", // 14px on NS4 Mac; else 10px

// Incorrect:
FontSize:"12",    // length indicator required
FontSize:15px,    // quotes required
FontSize:"(HM_Mac)?'12px':'10px'", // no quoted expressions here
Default:
"10pt"

See Also:
FontStyle, FontFamily, FontWeight, FontColor, FontColorOver, FontColorSelected, Using Classes Mini-Tutorial



JupiterOnlineMedia

internet.comearthweb.comDevx.commediabistro.comGraphics.com

Search:

Jupitermedia Corporation has two divisions: Jupiterimages and JupiterOnlineMedia

Jupitermedia Corporate Info


Legal Notices, Licensing, Reprints, & Permissions, Privacy Policy.

Advertise | Newsletters | Tech Jobs | Shopping | E-mail Offers

Created: 3/25/2004
Updated: 3/25/2004
URL: http://www.hiermenuscentral.com/documentation/reference/fontsize.html