Results 1 to 5 of 5

Thread: Generic Family Name

  1. #1
    Join Date
    Sep 2005
    Location
    borneo island
    Posts
    12
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Generic Family Name

    How exactly do we write a generic family name?
    Here's mine;

    ...{
    font-family: verdana, arial, tahoma, times new roman;
    }

    When I tried validating my .css file using the validator in w3.org it gave me a warning telling me that I'm encouraged to include a generic family name as a last alternative...

  2. #2
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Something like "serif", "sans-serif", "monospace". Put it on the end. The browser will use the system's generic font of that type.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  3. #3
    Join Date
    Sep 2005
    Location
    borneo island
    Posts
    12
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    any tip on identifying the font type? how's the example i gave? i was guessing i'm suppose to use standard fonts and the system can choose from one. what if i put...

    font-family: verdana, tahoma, fixedsys;

  4. #4
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    No, no, no. You misunderstand the term "family name." It's not a font, it's a type of font. Serif means the fonts with the little flicks on the ends. Sans-serif means the fonts without. Monospace is a font where all the letters are the same width (like courier).
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  5. #5
    Join Date
    Sep 2005
    Location
    borneo island
    Posts
    12
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    you just updated my almost-fossillised-9-year-corrupt knowledge

    thank you loads!

Bookmarks

Posting Permissions

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