SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Wizard jax502's Avatar
    Join Date
    Jul 2003
    Location
    Jacksonville, FL
    Posts
    1,031
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question CSS Validation WARNING:

    Everytime I validate my CSS code, I don't get any errors except for this warning:
    Line : 0 font-family: You are encouraged to offer a generic family as a last alternative

    What does this mean and how do I take care of this? Thanks in advance!
    jax502

  2. #2
    SitePoint Addict xDev's Avatar
    Join Date
    Jul 2003
    Location
    Moncton, New Brunswick, Canada
    Posts
    247
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    font: 0.9em verdana, sans-serif;

    Property: font-family
    Values: <family-name>, <generic-family>
    Initial: UA specific
    Inherited: yes

    The value is a prioritized list of font family names and/or generic family names. Unlike most other CSS1 properties, values are separated by a comma to indicate that they are alternatives:

    BODY { font-family: gill, helvetica, sans-serif }

    There are two types of list values:

    <family-name>
    The name of a font family of choice. In the last example, "gill" and "helvetica" are font families.
    <generic-family>
    In the example above, the last value is a generic family name. The following generic families are defined:
    'serif' (e.g. Times)
    'sans-serif' (e.g. Helvetica)
    'cursive' (e.g. Zapf-Chancery)
    'fantasy' (e.g. Western)
    'monospace' (e.g. Courier)

    Style sheet designers are encouraged to offer a generic font family as a last alternative.
    http://www.zvon.org/xxl/css1Referenc...nt-family.html

  3. #3
    SitePoint Wizard jax502's Avatar
    Join Date
    Jul 2003
    Location
    Jacksonville, FL
    Posts
    1,031
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by xDev
    Thanks! I have a valid CSS now!
    jax502


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
  •