[ol]
[li]All CSS style sheets are case-insensitive, except for parts that are not under the control of CSS. I.e., in CSS1, font family names and URLs can be case-sensitive. Also, the case-sensitivity of the CLASS and ID attributes is under the control of HTML.
[li]in CSS1, selectors (element names, classes and IDs) can contain only the characters A-Z, 0-9, and Unicode characters 161-255, plus dash (-); they cannot start with a dash or a digit; they can also contain escaped characters and any Unicode character as a numeric code (see next item).
[li]the backslash followed by at most four hexadecimal digits (0..9A..F) stands for the Unicode character with that number.
[li]any character except a hexadecimal digit can be escaped to remove its special meaning, by putting a backslash in front, Example: "\"" is a string consisting of one double quote.
[li]the two preceding items define backslash-escapes. Backslash-escapes are always considered to be part of an identifier, except inside strings (i.e., "\7B" is not punctuation, even though "{" is, and "\32" is allowed at the start of a class name, even though "2" is not).
[/ol]
From
. I couldn't find a maximum length, it might be a browser-dependent thing. How long would you want them anyway?
-- Chris Hunt
Extra Connections Ltd