• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 7. Working with Fonts > Setting Font Weights

Setting Font Weights

CSS provides the font-weight property for setting different font weights. The heavier a font's weight, the bolder it is displayed. The font-weight property takes four keyword values, normal, bold, bolder, and lighter, and nine numeric values, 100, 200, 300, 400, 500, 600, 700, 800, and 900.

The CSS specifications say that normal is synonymous with 400 and bold is synonymous with 700, while bolder and lighter should select font weights that are relative to the font weight inherited from the parent element.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint