Export (0) Print
Expand All
top
Expand Minimize

font-weight

Sets the weight of the font of the object.

Syntax

{ font-weight: sWeight }

Possible values

sWeight

String that specifies or receives one of the following values:

normal

Font is normal.

bold

Font is bold.

bolder

Font is at least as bold as the default bold weight.

lighter

Font is lighter than normal.

100

Font is at least as light as the 200 weight.

200

Font is at least as bold as the 100 weight and at least as light as the 300 weight.

300

Font is at least as bold as the 200 weight and at least as light as the 400 weight.

400

Font is normal.

500

Font is at least as bold as the 400 weight and at least as light as the 600 weight.

600

Font is at least as bold as the 500 weight and at least as light as the 700 weight.

700

Font is bold.

800

Font is at least as bold as the 700 weight and at least as light as the 900 weight.

900

Font is at least as bold as the 800 weight.

This property has no default value. It is inherited.

Remarks

Keywords for font-weight values are mapped to specific font variations depending on the fonts that are installed on the user's computer. In many cases, the user cannot see the difference between different font-weight settings because the operating system chooses the closest match.

Setting the font-weight to 400 is equivalent to normal, and to 700 is equivalent to bold. A font-weight of bolder or lighter is interpreted relative to the weight of the parent object. A value of bolder for text whose parent is normal weight sets the text to bold.

Examples

The following example uses the font-weight property to change the font weight. This example uses the LI element as a selector in an embedded (global) style sheet to set the font weight to bolder:

<style>
li {font-weight:bolder}
</style>

Standards information

This property is defined in Cascading Style Sheets (CSS), Level 1 (CSS1) Ee371189.xtlink_newWindow(en-us,Expression.40).png.

Applies to

a, abbr, acronym, b, bdo, big, blockquote, body, button, caption, center, cite, code, custom, dd, defaults, del, dfn, div, dl, dt, em, embed, fieldset, font, form, frameset, frame, hn, i, iframe, img, input type=button, input type=checkbox, input type=file, input type=image, input type=password, input type=radio, input type=reset, input type=submit, input type=text, ins, li, object, ol, p, q, s, span, sub, table, td, th, tt, u, ul, var, xmp

See also

Concepts

font

Send feedback about this topic to Microsoft. © 2011 Microsoft Corporation. All rights reserved.

Community Additions

ADD
Show:
© 2014 Microsoft