Closed
Bug 277317
Opened 20 years ago
Closed 20 years ago
Problem with CSS & classes (Sub-items?)
Categories
(Firefox :: General, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 247596
People
(Reporter: eric.noel, Assigned: bugzilla)
References
()
Details
When using a style sheet, I have: A { color: #006633; text-decoration: none; } A.2 { color: #99CC00; text-decoration: none; } The A seems works fine, but when I have a link with class="2", the color stays at #006633.
Comment 1•20 years ago
|
||
I tried: <?xml version="1.0"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Untitled</title> <meta name="generator" content="BBEdit 7.1.4" /> <style type="text/css"> /* <![CDATA[ */ A { color: #006633; text-decoration: none; } A.A { color: #99CC00; text-decoration: none; } A.2 { color: #99CC00; text-decoration: none; } /* ]]> */ </style></head> <body> <ul> <li><a>No class</a></li> <li><a class="A">Class A</a></li> <li><a class="2">Class 2</a></li> </ul> </body> </html> and got reasonable results. Are there any restrictions on class names?
Comment 2•20 years ago
|
||
There are indeed restrictions, including "they cannot start with a digit". *** This bug has been marked as a duplicate of 247596 ***
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•