Fonts are one of the most basic things designers want to set with CSS. Is the text italic? Is it bold? What typeface and size are used? CSS provides properties to set all these basic characteristics of text. In particular, you can set these properties:
For example, this style rule uses all of the previous properties to make the dish element a suitably impressive headline:
dish { font-family: Helvetica, Arial, sans-serif; font-size: x-large; font-style: italic; font-variant: small-caps; font-weight: 900; font-stretch: semi-expanded }
Copyright © 2002 O'Reilly & Associates. All rights reserved.