Fork me on GitHub

CSS Validation  Bottom

  • Hi all,

    Have a question. I am working on a new theme for my site and i ran it through the CSS validation to see if it was okay or if there were any errors.

    What came back was this:

    Code

    Line : 1 font-family: You are encouraged to offer a generic family as a last alternative
    Line : 2 font-family: You are encouraged to offer a generic family as a last alternative
    Line : 3 font-family: You are encouraged to offer a generic family as a last alternative
    Line : 4 font-family: You are encouraged to offer a generic family as a last alternative
    Line : 5 font-family: You are encouraged to offer a generic family as a last alternative
    Line : 6 font-family: You are encouraged to offer a generic family as a last alternative
    Line : 7 font-family: You are encouraged to offer a generic family as a last alternative
    Line : 8 font-family: You are encouraged to offer a generic family as a last alternative
    Line : 9 font-family: You are encouraged to offer a generic family as a last alternative
    Line : 10 font-family: You are encouraged to offer a generic family as a last alternative
    Line : 11 font-family: You are encouraged to offer a generic family as a last alternative
    Line : 12 font-family: You are encouraged to offer a generic family as a last alternative
    Line : 13 font-family: You are encouraged to offer a generic family as a last alternative
    Line : 15 font-family: You are encouraged to offer a generic family as a last alternative
    Line : 16 font-family: You are encouraged to offer a generic family as a last alternative
    Line : 17 font-family: You are encouraged to offer a generic family as a last alternative
    Line : 18 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
    Line : 20 font-family: You are encouraged to offer a generic family as a last alternative
    Line : 21 font-family: You are encouraged to offer a generic family as a last alternative
    Line : 22 font-family: You are encouraged to offer a generic family as a last alternative
    Line : 23 font-family: You are encouraged to offer a generic family as a last alternative


    This is the only error that came back out of the whole CSS file. Can anyone give a suggestion on how to fix this or if it should just be ignored?

    Thanks in advance! :D
  • font-family: Times, serif;

    or

    font-family: Arial, Helvetica, sans-serif;

    the last values are a generic font that the UA (browser) will fill in if it can't find the other fonts locally.
  • craigh,

    I see, so i would add the font-family: {Arial, Helvetica, sans-serif;} to my CSS in case it can not find the font's that i originally have listed in the CSS.

    Thank you very much :D Sorry for the delay in getting back with you, been hectic on my end here that past few days lol. :P

    Many thanks!

This list is based on users active over the last 60 minutes.