CSS: a:hover Effekt nach a:visited -aber wie?

Benedict

Angesehenes Mitglied
Hallo,

ich habe da folgendes Problem, wenn ich einen Link anklicke wird der Link via a:visted blau - ist auch so gewollt.
Wenn ich aber nun wieder über den Link drüber gehe, wechselt er nicht mehr seine Frabe, da er auch dem a:visted Status ist. Wie kann ich das ändern, das sich auch noch nachdem ich den Link angeklickt habe die Farbe wechselt?

Gruß,
Benedict
CODE a:link{
color:#548be8;
text-decoration: none;
}

a:hover{
color:#ffffff;
text-decoration: none
}

a:active{
color:#ffffff;
text-decoration: none
}

a:visited{
color:#548be8;
text-decoration: none
}


EDIT: Hat sich geklärt, die Reihnfolge war falsch.
mad.gif
 
würde das etwas kürzer machen. zB. so:

CODE a:link, a:visited{
color:#548be8;
text-decoration: none;
}

a:hover, a:active{
color:#ffffff;
}



kommt das selbe raus.
ric
 
in deinem Fall kannst du es auch so machen, da :visited gleich definiert ist wie :link ist:
CODE
a {
color:#548be8;
text-decoration: none;
}

a:hover{
color:#ffffff;
}



Das hover geht damit.
 
Zurück
Oben