Barney Carroll wrote:
Hiya Elli,

On 30 March 2011 15:49, Elli Vizcaino<[email protected]>  wrote:
I forget what the rules are for naming classes and IDs

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,

Very succinctly ?  By the end of reading it, I was more confused
than when I started !  It even starts with a glaring error :

a name must start with an underscore (_), a dash (-), or a letter(a–z), 
followed immediately 1 by a letter or underscore

which would rule out <element class="A1"> (leading
letter NOT followed by letter or underscore).

However, pointing validator.w3.org at

        http://web-consultants.org.uk/sites/tests/A1.css

which contains

        .A1 {visibility : inherit}

the validator says "All is well"; I would trust the validator over
Stackoverflow any day !

Philip Taylor
______________________________________________________________________
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/

Reply via email to