Reply to Re: Numeric CSS class - Firefox complains but Opera OK

Your name:

Reply:


Posted by Jonathan N. Little on 06/22/06 19:22

john@starmarkassociates.co.uk wrote:
> For the record (in case anyone in future hits the same problem):
>
> Firefox (1.5.0.4) 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.

See the spec:

http://www.w3.org/TR/CSS21/syndata.html#q6

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

A class name '800' is not valid.

--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация