W3C CSS Validator - font warning

liunx

Guest
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;
}http://www.w3.org/TR/CSS1#font-familyfont-family: helvetica, sans-serif;Thanks to all who replied!
 
Back
Top