Hello,
I am working on a tribute page and I am having trouble with my nav bar. I think I have it stretched to the pages width (I’m not really sure though) Most importantly though I am trying to change the background color of the nav bar to match the elements (#dddddd) nothing that I am doing seems to be working. Please help. Thanks!!
<!--HTML-->
<div class=id="nav" margin-top="-50px">
<ul margin-top="-15px">
<li><a href="#">Home</a></li>
<li><a href="#">Bio</a></li>
<li><a href="#">Photos</a></li>
<li><a href="#">Recipes</a></li>
<li><a href="#">Contact</a></li>
<li><a href="#">About</a></li>
</ul>
</div>
<!--CSS-->
ul {
list-style-type: none;
margin: 0;
padding: 0;
}
li {
display: inline;
float: left;
overflow: hidden;
}
ul{
margin-top: -50px;
}
a {
display: block;
margin: 80px;
padding: 10px;
background-color: #dddddd;
}
li a:hover{
background-color: #3AD;
}
#nav{
property: responsive;
padding-left: -5%;
padding-right: -5%;
}