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

Chapter 21. Cascading Style Sheets and C... > Using Font Styles: Font, Font Size, ...

Using Font Styles: Font, Font Size, Font Weight, Font Style

Here are some of the properties you can use with fonts:

  • font-family specifies a font, such as Arial or Helvetica. You can list alternative fonts in case the host computer doesn’t support your first choice. To do that, specify font names as a comma-separated list, like this: {font-family: Arial, Helvetica}.

  • font-style indicates whether the text is to display using a normal, italic, or oblique face.

  • font-variant indicates whether the text is to display using the normal letters for lowercase characters or using small capitals instead.

  • font-weight specifies the boldness or lightness of the characters.

  • font-stretch specifies whether text should be expanded.

  • line-height specifies the height of a line.

  • font-size refers to the size of a font.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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