Sent by Elli Vizcaino on 30 March 2011 16:04
Yes I saw that before I sent my question out to the list. I got a little confused by the link to the
CSS Grammer. And some of the noations in on of the comment replies:
"Identifiers beginning with a dash or underscore are typically reserved for browser-specific
extensions, as in -moz-opacity."
"1. Note that, according to the grammar I linked, a rule starting with TWO dashes, e.g. --indent1,
is invalid. However, I'm pretty sure I've seen this in practice."
"2. It's all made a bit more complicated by the inclusion of escaped unicode characters (that no one
really uses)."
So I guess, in essence the answer is NO you cannot begin a class or ID name with numeric
characters?
Elli
--- On Wed, 3/30/11, Barney Carroll [EMAIL-REMOVED]> wrote:
> Hiya Elli,
> This question was answered very succinctly on
> stackoverflow:
>
>
http://stackoverflow.com/questions/448981/what-characters-are-valid-in-css-class-names#answer-449000
>
> Hope this helps,
>
>
> Regards,
> Barney Carroll
>
> 07594 506 381
______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
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/