Alex: Farbe von Links

Beitrag lesen

Hallo du hast das warscheinlich so gelöst:

a:link { font-weight:bold; color:#0000E0; text-decoration:none }
a:visited { font-weight:bold; color:#000080; text-decoration:none }
a:hover { font-weight:bold; color:#E00000; text-decoration:none }
a:active { font-weight:bold; color:#E00000; text-decoration:underline }

Nun kannst du unter diese definition einfach nochmal das ganze schreiben, nur dem noch ne Art Namen zu teilen:

a.link2:link { font-weight:bold; color:#0000E0; text-decoration:none }
a:link2visited { font-weight:bold; color:#000080; text-decoration:none }
a:link2hover { font-weight:bold; color:#E00000; text-decoration:none }
a:link2active { font-weight:bold; color:#E00000; text-decoration:underline }

Jetzt würde der link der die Eigenschaften von link2 haben soll so geschrieben werden:

<a href="ziel" class="link2">Text</a>

Ich hoffe ich konnte dir helfen.

MfG
Alex