Links ändern

Status
Nicht offen für weitere Antworten.

Morpheus

Mitglied
Hallo,

Ich habe in einer CSS-Datei folgenden Code:

Code:
<style> 
a:link { color: #000000; text-decoration: none; font-family: Arial; font-size: 14px; font-style: normal; font-weight: bold;
} 
a:visited {
	color: #838383;
	text-decoration: none;
	font-family: Arial;
	font-size: 14px;
	font-style: normal;
	font-weight: bold;
} 
a:hover {
	color: #454545;
	font-family: Arial;
	font-size: 14px;
	font-style: normal;
	font-weight: bold;
} 
a:active {
	color: #FF0000; 
                     text-decoration: none;
	font-family: Arial;
	font-size: 14px;
	font-style: normal;
	font-weight: bold;
}
</style>

Nun binde ich diese Datei in ein html-Dokument ein:

Code:
<link rel="stylesheet" type="text/css"    href="css/style2.css" />


Alles funktionert, außer eins:

Wenn ich einen Link erstelle, der noch nicht aufgerufen wurde (nicht visited) bleibt immer noch der Standard Link (also blau und unterstrichen) obwohl ich ihn doch umdefiniert habe.... ich weiß nicht warum... kann mir da jemand helfen?

Danke, Morpheus
 
Hi Morpheus!

Also, wenn du einen Stylesheet in eine extra Datei packst, brauchst du in diese nicht noch extra die Style-Tags zu schreiben.

Code:
<style></style>

Lass' die weg, dann solte es funktienieren (bei mir ist das der Fall).
 
Status
Nicht offen für weitere Antworten.
Zurück