"We are back" « oc.at

css: a:hover.menu oder a.menu:hover?

kleinerChemiker 11.12.2004 - 22:12 504 4
Posts

kleinerChemiker

Here to stay
Avatar
Registered: Feb 2002
Location: Wien
Posts: 4303
wie ist die korrekte bezeichnung? oder sind beide richtig?

a:hover.menu oder a.menu:hover

tia

MIK
Bearbeitet von kleinerChemiker am 11.12.2004, 22:43

that

Hoffnungsloser Optimist
Avatar
Registered: Mar 2000
Location: MeidLing
Posts: 11343
http://www.w3.org/TR/REC-CSS2/selector.html

Zitat
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. The simple selector matches if all of its components match.

-> Beide sind richtig.

HVG

Vereinsmitglied
untitled
Avatar
Registered: Jun 2000
Location: NÖ
Posts: 5983
.menu a:hover {}
würd ich zumindest nehmen ;)

that

Hoffnungsloser Optimist
Avatar
Registered: Mar 2000
Location: MeidLing
Posts: 11343
Zitat von HVG
.menu a:hover {}
würd ich zumindest nehmen ;)

Das ist halt was anderes - wenn man das HTML entsprechend anpasst, aber meistens gscheiter so. :)

kleinerChemiker

Here to stay
Avatar
Registered: Feb 2002
Location: Wien
Posts: 4303
thx that :)
Kontakt | Unser Forum | Über overclockers.at | Impressum | Datenschutz