[CSS] Verschieden A:active, A:visited, A.link Klassen

Status
Nicht offen für weitere Antworten.

nDeedy

Erfahrenes Mitglied
Jo, hi! Ich peil nicht wie man 2 verschieden links-klassen machen kann. ich, dass in meinem menü zB alles eine farbe hat und ansonsten alles <andere ne andere :d wie könnte das gehen?
 
Wenn du schon weisst, dass es sich um CSS
handelt, wieso schreibst du es dann nicht
in das CSS-Forum?
Moved...
 
Zuletzt bearbeitet:
@sam
oh tut mir leid, hab's übersehen. Aber da wo ich#s gepostet habe, heisst der Forum doch auch html, java, CSS Grundlagen, also tut's mir noch mal leid.

zum Problem. Ehzm wie wird das jetzt genau geschrieben?ich meine:

sieht es dann so aus?

.link1 a:link, a:visited, a:active { ... }
.link1 a:hover { ... }

oder irgwendwie anders?
 
PHP:
a { normale links }
a:hover {normale links - hover}
a.menu {menü-links}
a.menu:hover [menü-links - hover}
Viel Spaß ;)
 
@ sam

das hab ich:

Code:
a { COLOR: #000000; TEXT-DECORATION: none; font-family: Verdana; font-size: 10px; }
a:hover { COLOR: #505050; TEXT-DECORATION: none; font-family: Verdana; font-size: 10px; }

a.menu { COLOR: #EAEAEA; TEXT-DECORATION: none; font-family: Verdana; font-size: 10px; font-weight: bold; }
a.menu:hover { COLOR: #AFAFAF; TEXT-DECORATION: none; font-family: Verdana; font-size: 10px; font-weight: bold; }
Code:
<td width="109"><a href="news.php" class="menu">News</a></td>

und es funzt nicht :(
ich krieg ne kriese *heul*
 
Geht bei mir in allen Browsern einwandfrei:
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Klassen</title>
<style type="text/css">
a{
color:#000000;
text-decoration:none;
font-family:Verdana;
font-size:10px
}
a:hover{
color:#505050;
text-decoration:none;
font-family:Verdana;
font-size:10px
}
a.menu{
color:#EAEAEA;
text-decoration:none;
font-family:Verdana;
font-size:10px;
font-weight:bold
}
a.menu:hover{
color:#AFAFAF;
text-decoration:none;
font-family:Verdana;
font-size:10px;
font-weight:bold
}
</style>
</head>
<body>
<a href="#" class="menu">Men&uuml;</a><br>
<a href="#">Normal</a>
</body>
</html>
 
Status
Nicht offen für weitere Antworten.

Neue Beiträge

Zurück