Search DaTutorials:  
HOME
CSS Tutorials
Articles
Basics
Backgrounds
Customizing
Formatting
General
Layouts
Link Effects
Navigation
Positioning
Rollovers
Text Effects
Search For a Tutorial
CSS Reference

Font Weight


Syntax: font-weight: <value>
Possible Values: normal | bold | bolder | lighter | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900
Initial Value: normal
Applies to: All elements
Inherited: Yes

The font-weight property is used to specify the weight of the font. The bolder and lighter values are relative to the inherited font weight, while the other values are absolute font weights.

Note: Since not all fonts have nine possible display weights some of the weights may be grouped together in assignment. If the specified weight is not available, an alternate will be chosen on the following basis:

  • 500 may be switched with 400, and vice versa
  • 100-300 may be assigned to the next lighter weight, if any, or the next darker weight otherwise
  • 600-900 may be assigned to the next darker weight, if any, or the next lighter weight otherwise

Some example font-weight assignments would be:

H1 { font-weight: 800 }
P  { font-weight: normal }

Copyright © 1998 Liam Quinn. All rights reserved.

     MySpace Layouts | Per Insurance | Problem Mortgage | Mortgage Calculator | Credit Card Offers
Home     Link To Us     Ad With Us     Contact Us     Tell A Friend     Affiliates     Blog     MsOfficeHelp