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

Lesson 22. Troubleshooting CSS > Fixing the Problems

Fixing the Problems

Problem 1—In the body rule set, the font family name Times New Roman contains whitespace. Any font with whitespace should be wrapped in quotation marks. Listing 22.2 shows the problem and Listing 22.3 shows the corrected code.

Listing 22.2. CSS Code Showing an Unquoted font-family Name

body
{
    font-family: times, times new roman, serif;
}


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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