|
Posted by Toby Inkster on 11/18/53 11:31
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 -- that is classes that don't start
with a letter aren't particularly useful for styling, but can be used for
general purpose element subclassing.)
(Of course you can select them in CSS using *[class~="0.4"], though
browser support for this syntax is less widespread.)
--
Toby A Inkster BSc (Hons) ARCS
Contact Me ~ http://tobyinkster.co.uk/contact
Navigation:
[Reply to this message]
|