Unterschiede bei Links machen?

Guten Tag!

Ich habe das Aussehen meiner Links mit CSS festgelegt.
Ich möchte aber, daß in einem Dokument einige Links eine andere Ausgangsfarbe haben. Bei A:hover machen sie dann alle dasselbe.
Habe die Ausgangsfarbe mit font color geändert, funktioniert aber nicht.
Wer weiss Rat?

Schönen Tag noch
Hui Tsien

Hi,

wenn Du die Farbe des speziellen Links direkt über style programmierst (also direkt in den Link reinschreiben oder als eigene class oder mittels id definieren), klappt’s!

Viele Grüße,

Golo Haas

http://www.golohaas.de - the web the way you want it
icq 38090615

Ja, danke erstmal.

Leider hab ich keine Ahnung, wie du das meinst.
Hast du vielleicht ein Beispiel für mich?

Hui Tsien

Hallo,

Du definierst als Style z.B. zwei Klassen cssLink1 und cssLink2:

a.cssLink1
{
font-family:Arial,Helvetica,Sans-serif;
font-style:normal;
font-weight:normal;
font-size:16px;
text-decoration:none;
color:white;
}

a.cssLink1:hover
{
font-family:Arial,Helvetica,Sans-serif;
font-style:normal;
font-weight:normal;
font-size:16px;
text-decoration:underline;
color:gray;
}

a.cssLink2
{
font-family:Arial,Helvetica,Sans-serif;
font-style:normal;
font-weight:normal;
font-size:18px;
text-decoration:none;
color:red;
}

a.cssLink2:hover
{
font-family:Arial,Helvetica,Sans-serif;
font-style:normal;
font-weight:bold;
font-size:18px;
text-decoration:none;
color:yellow;
}

In den a-Tags gibst Du dann die Klasse expizit an:

Link1

Link2

Das sollte klappen denke ich mal…

CU

Hi,

Du fügst einfach einem Link ein Style-Attribut hinzu und setzt dort die Farbe. Beispiel:

Normaler Link: xyz

Anderer Link: xyz2

Bei color musst Du eben den Farbcode einsetzen.

Alles klar?

Golo Haas

http://www.golohaas.de - the web the way you want it
icq 38090615

so gehts. danke! (o.T.)