Hallo zusammen!
Ich habe ein Problem mit meinen Pseudoklassen... im IE funzt alles wunderbar, aber im FF ist es wie verhext. Hier funktioniert
a:visited auf einmal nicht mehr: Wenn ich den ersten link anklicke, wechseln die nächsten beiden links schon die farbe
Hier der Code dazu:
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>CSS Einsendeaufgabe</title>
<link href="css-aufgabe_test.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="holder">
<div id="nav">
<ul>
<li><a href="#">Link 1</a></li>
<li><a href="#">Link 2</a></li>
<li><a href="#">Link 3</a></li>
</ul>
</div>
<div id="content">
<h1 class="callout">CSS Einsendeaufgabe</h1>
<p class="grosstext">lalalalalalala</p>
<p class="kleintext">lalalalalalla</p>
</div>
<div class="brclear"></div>
</div>
</body>
</html>
und in CSS:
Code:
body {
font: 100% Verdana, Geneva, sans-serif;
color: #000000;
background: #ADA189;
margin: 0px;
padding: 0px;
}
#holder {
width: 760px;
background: #FFCC00;
margin: 0 auto 0 auto;
}
#nav {
width: 140px;
float: left;
padding: 15px 10px;
background: #669933;
margin-top: 0px;
}
#content {
margin: 0 0 0 165px;
padding: 15px;
background: #FF9933;
}
h1 {
text-align: left;
font-weight: bold;
font-size: 24pt;
color: #000000;
}
.grosstext {
font-size: 16pt;
}
.kleintext {
font-size: 12pt;
}
.callout {
font: bold 180% Verdana, Geneva, sans-serif;
color: #333;
margin: 0;
padding: 20px 0px;
}
.brclear {
clear:both;
height: 0;
margin: 0;
font-size: 1px;
line-height: 0px;
}
p {
font-size: 80%;
}
#content p {
line-height: 130%;
}
#nav a:link {
color: #000;
text-decoration: none;
font-weight: bold;
}
#nav a:visited {
color: #9933CC;
}
#nav a:hover, #nav a:active, #nav a:focus {
color: #000;
text-decoration: underline;
}
W3C-Validatoren habe ich schon drüberlaufen lassen- alles super, nur nicht bei mir
Vielen Dank von einer Anfängerin