I want white color for my main navigation. I coded it and it was fine until I did my footer. I used a list and used a gray color. Now the gray color is showing up on my main navigation when clicked .
Here is my code.
HTML------
<!DOCTYPE HTML>
<html>
<head>
<title>Next Best Rockfest</title>
<link rel="stylesheet" type="text/css" href="main.css">
<style type="text/css">
#header2{
float:left;
width:950px;
height:250px;
background-color: green;
margin-top: 10px;
margin-bottom: 10px;
background-image: url("images/billboard.jpg");
}
</style>
</head>
<body>
<!--wrapper beginning-->
<section id="wrapper">
<!--Header Beginning------------------------------------------------------------------------------------->
<header>
<article id="logo">
<img src="images/nextbestfest_logo.jpg">
</article>
<article id="socialmedia">
<a href="http://www.facebook.com "><img src="images/facebook.png" style="border-width:0;"></a>
<a href="http://www.twitter.com"><img src="images/twitter.png" style="border-width:0;"></a>
<a href="http://www.pinterest.com"><img src="images/pinterest.png" style="border-width:0;"></a>
<a href="http://www.youtube.com"><img src="images/youtube.png" style="border-width:0;"></a>
</article>
<nav>
<article id="nav1">
<ul>
<li><a href="index.html">Home</a></li>
<li><a href="about.html">About</a></li>
<li><a href="bands.html">Bands</a></li>
<li><a href="locations.html">Locations</a></li>
<li><a href="tickets.html">Tickets</a></li>
<li><a href="contact.html">Contact</a></li>
</ul>
</article>
</nav>
<section id="header2">
</section>
</header>
<!--Header End--------------------------------------------------------------------------------------------->
<aside>
jhjk
</aside>
<!--Main Beginning--------------------------------------------------------------------------------------->
<section id="main">
main
</section>
<!--Main end----------------------------------------------------------------------------------------------->
<!--FOOTER BEGINNING---------------------------------------------------------------------------------------->
<footer>
<article id="footernav">
<ul>
<li><a href="index.html">Home</a></li>
<li><a href="about.html">About</a></li>
<li><a href="bands.html">Bands</a></li>
<li><a href="locations.html">Locations</a></li>
<li><a href="tickets.html">Tickets</a></li>
<li><a href="contact.html">Contact</a></li>
</ul>
</article>
<article id="copy">
Next Best Fest Copyright 2013
</article>
<article id="designer">
Website Designed by Lance Watson
</article>
</footer>
<!--FOOTER END-------------------------------------------------------------------------------------------->
</section>
</body>
</html>
—CSS—
@charset "utf-8";
/* CSS Document */
body{
background-image: url("images/crowd_background.jpg");
}
/*jhkjhkljkh*/
#wrapper
{
margin: 0 auto;
width: 955px;
background-color: #ffffff;
padding: 5px 0px 5px 5px;
height: 1000px;
}
header{
float: left;
width: 950px;
background-color: #ffffff;
}
#logo{
float: left;
width:320px;
height:60px;
background-color: #000;
}
#socialmedia{
float: right;
width: 150px;
height: 44px;
background-color: ;
}
nav{
float:left;
width: 950px;
height: 50;
background-color:#000000;
margin-top: 12px;
}
#nav1{
float: left;
width: 950px;
background-color: #000;
}
#nav1 ul{
list-style-type: none;
margin: 0;
padding:0;
overflow: hidden;
}
#nav1 li{
float:left;
}
#nav1 a:link,a:visited{
display: block;
width: 137px;
font-weight: bold;
color:#ffffff;
background-color: #000000;
text-align: center;
text-decoration: none;
padding: 10px;
border-right: solid 1px #ffffff;
}
#nav1 a:hover, a:active{
background-color:#d33039;
}
#header2{
float:left;
width:950px;
height:250px;
background-color: green;
margin-top: 10px;
margin-bottom: 10px;
}
aside{
float: right;
width: 280px;
height: 500px;
background-color:#ddd;
margin-right: 5px;
padding: 5px 5px 5px 5px;
}
#main{
float: left;
width: 645px;
height: 500px;
background-color:#ddd;
padding: 5px 5px 5px 5px;
}
footer{
float: left;
width:945px;
background-color:#000000;
padding: 5px 5px 10px 0px;
font-family: arial,georgia,sans-serif;
font-color:#aaa;
margin-top: 10px;
}
#footernav{
float: left;
width: 945px;
background-color: #000;
padding: 5px 0px 0px 5px;
}
#footernav ul{
list-style-type: none;
margin: 0;
padding:0;
overflow: hidden;
}
#footernav li{
float:left;
}
#footernav a:link,a:visited{
display: block;
width: 145px;
font-size:12px;
font-weight: bold;
color: #ccc;
background-color: #000000;
text-align: center;
text-decoration: none;
padding: 5px;
}
#footernav a:hover, a:active{
color:#d33039;
}
#copy{
float: left;
font-family:arial,georgia,sans-serif;
font-size:10px;
color: #ccc;
border: solid 0px red;
margin: 5px 0px 0px 420px;
}
#designer{
float: left;
font-family:arial,georgia,sans-serif;
font-size:10px;
color: #ccc;
border: solid 0px red;
margin: 5px 0px 0px 420px;
}