[thelist] CSS Validation - font-family

Chris Rosser chris.rosser at codemasters.com
Wed Jan 21 10:29:45 CST 2004


>>      * Line : 0 font-family: You are encouraged to offer a generic 
>> family as a last alternative
>> 
>> body {
>> font-family : arial, helvetica, verdana, sans-serif, courier;
>> }
>> 

>sans-serif is a correct generic family but it must be last in line.

If you move sans-serif to the end of the line, the W3C validator still
returns the same error.

I think you'll probably find that, although the validator isn't returning
the correct line number, your problem lies with any font-family definitions
where a generic tag isn't present at all, e.g.

input, selector, checkbox, radio, textarea {
			 margin: 0;
			 padding: 0;
			 border: 1px solid #666;
			 font-family: times, new-century-schoolbook,
garamond;
			 font-size: small;
}

Ensure that all occurrences of 'font-family' contain either serif or
sans-serif, and your CSS should validate.

HTH!

Chris




**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.
**********************************************************************



More information about the thelist mailing list