Ich habe als Aufgabenstellung die Bearbeitung einer HTML Seite mit CSS. Ein Unterpunkt ist es, Links mit Pseudoklassen "auszuschmücken". a:hover, a:link usw.
Wenn ich das mache, verschwindet aber die Hintergrundfarbe (es bleibt einfach weiß)! Habe es mit internem Style Sheet probiert und mit inline CSS. Geht alles nicht. =(
Woran liegt das?
Hier die externe CSS Datei:
<html>
<head>
</head>
<body>
body {background-color: #FF4040;}
a:link { color: #FFF68F;
font-size: 1pc;
font-family: MV Boli;
}
a:hover {color: green;}
a:focus {color: blue;}
a:visited {color: black;}
h1 {color: #FFF68F;
font-size: 3pc;
font-family: Maiandra GD;
font-weight: bold;
text-align: center;
}
</body>
</html>
Habs sonst immer so gemacht, funktioniert auch überall. Nur hier eben nicht.
Hilfe!!
Wenn ich das mache, verschwindet aber die Hintergrundfarbe (es bleibt einfach weiß)! Habe es mit internem Style Sheet probiert und mit inline CSS. Geht alles nicht. =(
Woran liegt das?
Hier die externe CSS Datei:
<html>
<head>
</head>
<body>
body {background-color: #FF4040;}
a:link { color: #FFF68F;
font-size: 1pc;
font-family: MV Boli;
}
a:hover {color: green;}
a:focus {color: blue;}
a:visited {color: black;}
h1 {color: #FFF68F;
font-size: 3pc;
font-family: Maiandra GD;
font-weight: bold;
text-align: center;
}
</body>
</html>
Habs sonst immer so gemacht, funktioniert auch überall. Nur hier eben nicht.
Hilfe!!