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

Chapter 11. Introducing CSS > Changing Fonts with CSS

Changing Fonts with CSS

One of the best known abilities of CSS is that of being able to change fonts throughout a page by changing one line. In other words, you can change all of the text assigned to a class simply by changing the class's definition. In Script 11.4, adding font information to the body rule causes the entire page to display as you like it, as shown in Figure 11.4.

Figure 11.4. Changing the body selector changed the font and font size on the whole page.



PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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