Sebastian Becker: .body a überschreiben mit .menu a klappt nicht

Beitrag lesen

Hallo,

ich hätte gerne auf einer Seite zwei verschiedene Link-Formatierungen. Das untenstehende StyleSheet bewirkt bei mir leider die Anwendung der "menu"-Formatierung auf den body statt umgekehrt. Das kann ich mir nicht erklären. Vielleicht hat jemand eine Idee?!

Danke für alle Tips, Grüße,

Sebastian Becker

P.S. Seite noch nicht im Netz

----------------------------------------------------------------

body a:link{
 color : #0066CC;
 text-decoration : none;
}

body a:visited{
 color : #0066CC;
 text-decoration : none;
}

body a:hover{
 color : #FF9933;
 text-decoration : underline;
}

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

body, td {
 background-color : #FFFFFF;
 color : #666666;
 font-family : Tahoma,Verdana,Arial,Helvetica,sans-serif;
 font-size : 8pt;
}

.menu{
 border : solid;
 border-color : #CCCCCC;
 border-width : 1px;
}

.menu a:link{
 color : #666666;
 text-decoration : none;
}

.menu a:visited{
 color : #666666;
 text-decoration : none;
}

.menu a:hover{
 color : #3366FF;
 text-decoration : none;
}

.menu a:active{
 color : #3366FF;
 text-decoration : none;
}