Hallo Retrotown,
Ich habe ein Problem mit HTML/CSS.
Das CSS funktioniert irgendwie nicht.
HTML Code:
Code
<!DOCTYPE html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Test-Website</title>
<link rel="stylesheet" type="text/css" href="style.css" />
</head>
<body>
<nav>
<a href="#">Startseite</a>
<a href="#">Über Uns</a>
<a href="#">Projekte</a>
<a href='#'>News</a>
</nav>
</body>
</html>
Alles anzeigen
CSS Code:
Code
@charset "utf-8";
/* CSS Document */
body
{
background: #999;
margin: 0 auto;
}
a:link
{
color: #FFF;
}
a:focus
{
color: #FFF;
}
a:active
{
color: #FFF;
}
a:hover
{
color: #FFF;
}
nav
{
margin-top: 10px;
margin-left: 20px;
width: 900px;
}
nav a
{
padding: 5px;
color: #FFF;
border-radius: 3px;
text-decoration: none
font-size: 20px;
-webkit-transition: all 0.3s ease-out;
-moz-transition: all 0.3s ease-out;
-ms-transition: all 0.3s ease-out;
-o-transition: all 0.3s ease-out;
transition: all 0.3s ease-out;
}
nav a:hover
{
padding: 5px;
color: #FFF;
border-radius: 3px;
text-decoration: none
font-size: 20px;
background: color: #DD8500
-webkit-transition: all 0.3s ease-in;
-moz-transition: all 0.3s ease-in;
-ms-transition: all 0.3s ease-in;
-o-transition: all 0.3s ease-in;
transition: all 0.3s ease-in;
}
Alles anzeigen
Ich finde den fehler nicht..
Ich hoffe mir kann jemand helfen.
MfG,
Mekaro