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

Chapter 7. Working with Fonts > Setting Font Sizes

Setting Font Sizes

In straight HTML, the deprecated FONT element is also used to set font sizes. It enables you to set only seven different font sizes, of which only four (sizes 4, 5, 6, and 7) correspond to font sizes that are larger than the normal font size. By using CSS styles, however, you can set an unlimited range of font sizes.

You've already had some experience setting font sizes earlier in this book. To illustrate how large you can go when setting font sizes using CSS, here's an example that sets the H1 element's font size to 10 ems, or ten times the font size of the H1 element's parent element (see Figure 7.1):


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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