The JSSTag.fontWeight property corresponds to the font-weight CSS property.
This property controls the weight of the characters on the screen. this is sometimes called boldness although it provides a much finer level of control than simply using a bold tag. The following numerical values select a progressive weight increase:
100
200
300
400
500
600
700
800
900
These keywords select a pair of reasonably similar settings across platforms:
normal
bold
The normal setting is equivalent to 400 and the bold setting matches 700.
In addition there are two relative boldness controls:
bolder
lighter
Not all font families support as wide a range of possible weights as the fontWeight property can control. Nevertheless, the browser makes its best efforts to deliver the requested appearance.
The default value for this property is "normal".
This value is inherited from its parent container element.
Deprecated for any further use. This was available only in Netscape 4.0 and is completely removed from Netscape 6.0.
See also: | Measurement units, style.fontWeight |
Prev | Home | Next |
JSSTag.fontStyle | Up | JSSTag.height |
JavaScript Programmer's Reference, Cliff Wootton Wrox Press (www.wrox.com) Join the Wrox JavaScript forum at p2p.wrox.com Please report problems to support@wrox.com © 2001 Wrox Press. All Rights Reserved. Terms and conditions. |