Supportnet / Forum / Webseiten/HTML
CSS Zwei verschidene farben für Links!! Wie geht das?
Frage
Hallo liebe supportnetler,
ich habe folgendes problem:
Im mom habe ich nur eine sorte von links diese sind schwartz und haben einen orgengen hover effeckt, nun will ich andere links zb grün machen ohne den hover effeckt zu verlieren.
habe eine css datei benute im mom
a:link, a:hover ... mit klassen oder id's habe ich es nicht geschafft !!
naja schon ein mal danke für die die sich die zeit nehmen und mir antworten.
Antwort 1 von redschina.
hi,
zwischen <head> und </head>:
<style type="text/css">
<!--
A:HOVER {Text-Decoration: none}
A.Farbe1:LINK {Color: blue; Background-Color: white}
A.Farbe1:VISITED {Color: yellow; Background-Color: white}
A.Farbe1:HOVER {Color: red; Background-Color: white}
A.Farbe1:ACTIVE {Color: green; Background-Color: white}
A.Farbe2:LINK {Color: black; Background-Color: white}
A.Farbe2:VISITED {Color: purple; Background-Color: white}
A.Farbe2:HOVER {Color: teal; Background-Color: white}
A.Farbe2:ACTIVE {Color: red; Background-Color: white}
-->
</style>
und zwischen <body> und </body>
<A CLASS="Farbe1" HREF="Link1.htm">Link 1</A>
<BR>
<A CLASS="Farbe2" HREF="Link2.htm">Link 2</A>
farben und text noch anpassen und fertisch...
gruss, redschina
zwischen <head> und </head>:
<style type="text/css">
<!--
A:HOVER {Text-Decoration: none}
A.Farbe1:LINK {Color: blue; Background-Color: white}
A.Farbe1:VISITED {Color: yellow; Background-Color: white}
A.Farbe1:HOVER {Color: red; Background-Color: white}
A.Farbe1:ACTIVE {Color: green; Background-Color: white}
A.Farbe2:LINK {Color: black; Background-Color: white}
A.Farbe2:VISITED {Color: purple; Background-Color: white}
A.Farbe2:HOVER {Color: teal; Background-Color: white}
A.Farbe2:ACTIVE {Color: red; Background-Color: white}
-->
</style>
und zwischen <body> und </body>
<A CLASS="Farbe1" HREF="Link1.htm">Link 1</A>
<BR>
<A CLASS="Farbe2" HREF="Link2.htm">Link 2</A>
farben und text noch anpassen und fertisch...
gruss, redschina
Antwort 2 von :mfg*ra-hoch3:
hy danke das hilft mir echt
Antwort 3 von rfb
manchmal mögen Browser das auch lieber so definiert:
must du evtl. ausprobieren.
a:link.Farbe1 { usw. }must du evtl. ausprobieren.

