W3C home > Mailing lists > Public > www-validator-css@w3.org > March 2001

Re: I don't know what to do now

From: Karl Dubost <karl@w3.org>
Date: Sun, 11 Mar 2001 15:30:56 +0100
Message-Id: <p05010402b6d13a7cf26c@[]>
To: Wee Nghee <weiyi@peweb.per.sg>, www-validator-css@w3.org
At 22:07 +0800 2001-03-11, Wee Nghee wrote:
>I couldn't see the styles I created using IE4.  Thus completed a 
>check with the validator but don't understand.  Can you help me 
>solve my problem?

First of all if you want to see CSS1 and a part of CSS2 , you should 
download one of the following browsers that support stylesheets.
Opera 5, IE 5.0 (Mac), IE 5.5 (Win), Konqueror, Netscape 6, Mozilla 0.8, etc.

>The validator results says:"
>W3C CSS Validator Results with object : 
>		Go to Errors
>		Go to Warnings
>		Go to your validated Cascading Style Sheet
>		Back to CSS Validator
>Errors :
>	URI : 	http://homex.coolconnect.com/member3/bsssl/education/index.htm
>Line: 40 Context : .category
>Parse Error - category_font { font-family: Verdana, Arial, 
>Helvetica, sans-serif; font-size: 9pt}

In CSS2, http://www.w3.org/TR/REC-CSS2/syndata.html#value-def-identifier

In CSS2, identifiers (including element names, classes, and IDs in 
selectors) can contain only the characters [A-Za-z0-9] and ISO 10646 
characters 161 and higher, plus the hyphen (-); they cannot start 
with a hyphen or a digit. They can also contain escaped characters 
and any ISO 10646 character as a numeric code (see next item). For 
instance, the identifier "B&W?" may be written as "B\&W\?" or "B\26 

So you can't have "_" characters in your selector, for example you should have

.categoryFont { font-family: Verdana, Arial, Helvetica, sans-serif; 
font-size: 9pt}

Hope it Helps! (HiH)  :)

Karl Dubost / W3C - Conformance Manager

      --- Be Strict To Be Cool! ---
Received on Sunday, 11 March 2001 09:32:49 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 18:09:41 UTC