Class attribute values

L

Lachlan Hunt

Toby said:
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)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,679
Members
48,796
Latest member
Greg L.

Latest Threads

Top