Numeric CSS class - Firefox complains but Opera OK

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
For the record (in case anyone in future hits the same problem):

Firefox ( raised an error on a page in my frameset:
"Selector expected. Ruleset ignored due to bad selector."

I could find no relevant documentation or newsgroup comment on this
error, and the line-number specified as causing the problem was about
10 more than the last line on the page.

Only some miserable trial-and-error eventually identified the problem -
a CSS class named ".800" defined within the page. The problem - having
a leading numeral - is so very easily solved once identified.

Interestingly, Opera (8,54 Build 7730) had no problems with it.

John Geddes

Re: Numeric CSS class - Firefox complains but Opera OK wrote:
Quoted text here. Click to load it

See the spec:

..."they cannot start with a digit."

A class name '800' is not valid.

Take care,

Site Timeline