MudGuard: CSS Problem mit class="*"

Beitrag lesen

Hi,

Hallo,

Wie geht es, dass man in CSS z.B. a:hover eine Klasse zuweist?
Mit z.B. a:hover.gelb bestimmt nicht.
Doch, genauso. Zumindest in CSS2.
Wo steht das? Ich finde in http://www.w3.org/TR/REC-CSS2/selector.html#pseudo-elements nur:

A simple selector is either a type selector or universal selector followed immediately
by zero or more attribute selectors, ID selectors, or pseudo-classes, in any order.
                ^^^^^^^^^^^^^^^^^^^                   ^^^^^^^^^^^^^^  ^^^^^^^^^^^^

http://www.w3.org/TR/REC-CSS2/selector.html#q2

Und der Vollständigkeit halber für CSS 1:
In a contextual selector, pseudo-elements are only allowed at the end of the selector:
                          ^^^^^^^^^^^^^^^                         ^^^^^^^^^^^^^^^^^^^

http://www.w3.org/TR/REC-CSS1#pseudo-elements-in-selectors

cu,
Andreas

--
Der Optimist: Das Glas  ist halbvoll.  - Der Pessimist: Das Glas ist halbleer. - Der Ingenieur: Das Glas ist doppelt so groß wie nötig.
http://mud-guard.de/? http://www.andreas-waechter.de/