www.webdeveloper.com
Results 1 to 4 of 4

Thread: W3C CSS Validator - font warning

  1. #1
    Join Date
    Dec 2004
    Posts
    53

    W3C CSS Validator - font warning

    Hello,

    How do I declare a generic font family? I verified my CSS code using the validator and it gave me warnings indicating I should have a generic font. I realize this is just a warning, but I want to eliminate this warning.

    Thank You.

    Here is the warning:

    Line : 6 font-family: You are encouraged to offer a generic family as a last alternative
    Line : 19 font-family: You are encouraged to offer a generic family as a last alternative

    Here is the offending code (line 6 is the font-family declaration):

    .text
    {
    font-family:helvetica;
    font-style:normal;
    font-weight:bold;
    font-size:14px;
    padding-left:0px;
    padding-right:0px;
    padding-top:0px;
    padding-bottom:0px;
    text-align:left;
    }

  2. #2
    Join Date
    Jul 2004
    Location
    Canada, eh
    Posts
    784
    Kids, kids... you tried your best, and you failed miserably; the lesson is: never try.

  3. #3
    Join Date
    Aug 2004
    Location
    Ankh-Morpork
    Posts
    19,351
    font-family: helvetica, sans-serif;
    "Please give us a simple answer, so that we don't have to think, because if we think, we might find answers that don't fit the way we want the world to be."
    ~ Terry Pratchett in Nation

    eBookworm.us

  4. #4
    Join Date
    Dec 2004
    Posts
    53
    Thanks to all who replied!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles