Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


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

9. Styling with Fonts and Colors: Expand... > Getting Tony a new font-family

Getting Tony a new font-family

Let’s get Tony set up with a font-family. We’re going to start with some clean sans-serif fonts. First, create a new file, “journal.css” in the “chapter9/journal” folder and add this rule:

image with no caption

Now you need to link Tony’s journal to the new style sheet file. To do that, open the file “journal.html” in the “chapter9/journal” folder. All you need to add is the <link> element to link in the style in “journal.css”, like we did below.

image with no caption

After you’ve made this change, save the file, fire up your browser and load the page.


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial