|
Posted by Lachlan Hunt on 11/11/05 12:58
Toby Inkster wrote:
> Spartanicus wrote:
>
>> The above assigns two classes to the element, "thumbedImage" and "0.4",
>> the latter is not permitted since class names are not allowed to start
>> with a digit: http://www.w3.org/TR/CSS21/syndata.html#q6
>
> In HTML, class names *are* allowed to start with a digit. However, if you
> choose to use class names that start with a digit, you can't select them
> using the CSS "dot-class" selector...
Yes you can, it's just not as clear as the attribute selector. This
works for the class name "0.4"
..\30\.4 { color: green; }
(note: 30 is the hex code point for digit 0)
--
Lachlan Hunt
http://lachy.id.au/
http://GetFirefox.com/ Rediscover the Web
http://GetThunderbird.com/ Reclaim your Inbox
[Back to original message]
|