so for the product landing page the test case checking if my nav bar is at the top of the screen is failing.
WHY?
my css.
nav ul{
list-style-type: none;
/*list style type dumps the dots */
margin: 0;
padding: 0;
/*The overflow property specifies what should happen if content overflows an element's box. */
overflow: hidden;
background-color: #C0C0C0;
position: fixed;
/*position fixed makes it stay at the spot
on the screen even if you scroll down
*/
top: 0;
width: 100%;
border: 2px solid #000;
}
nav li{
border-right: 2px solid #000000;
float: left;
}
nav li a {
display: block;
color: black;
text-align: center;
/*The CSS padding property is used to generate space around an element's content, inside of any defined borders. */
padding: 14px 16px;
text-decoration: none;
}
nav li a:hover {
background-color: #A9A9A9;
color: white;
}
my html
<!––my header ––>
<header id="header" class="green-gradient-down">
<!–– my navigation bar ––>
<nav id="nav-bar">
<ul>
<li ><a class="nav-link" href="#header-text">Home</a></li>
<li ><a class="nav-link" href="#about">About</a></li>
<li ><a class="nav-link" href="#music">Music</a></li>
<li ><a class="nav-link" href="#contact">Contact</a></li>
</ul>
</nav>
</header>