On Mon, Oct 1, 2012 at 12:37 PM, David Halliday <[email protected]> wrote: > > Hello, > > I have several class names that start with digits (e.g. .100, .200, .300 > etc). Firefox is not recognising them. Is there a solution/hack to get > round it? > On w3.org, it says this:- > In CSS1, a class name could start with a digit (".55ft"), unless it was a > dimension (".55in"). In CSS2, such classes are parsed as unknown > dimensions (to allow for future additions of new units). To make ".55ft" > a valid class, CSS2 requires the first digit to be escaped (".\35 5ft") . > http://www.w3.org/TR/CSS21/grammar.html > > I have tried to esacape the class name in the css file like so:- > .\100 { ... } > but it soes not seem to work. > > Per: http://www.w3.org/TR/CSS21/syndata.html#characters
"In CSS, identifiers (including element names, classes, and IDs in selectors) can contain only the characters [a-zA-Z0-9] and ISO 10646 characters U+00A0 and higher, plus the hyphen (-) and the underscore (_); they cannot start with a digit, two hyphens, or a hyphen followed by a digit. Identifiers 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 W\3F"." -- [email protected] ______________________________________________________________________ css-discuss [[email protected]] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ List policies -- http://css-discuss.org/policies.html Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
