I need help with my nav bar. Error says nav bar must remain in veiwport but I have my position fixed in header and still nothing. Here is what is have for code. I’m stuck, anything will help, thanks.
<html>
<title id="title"> </title>
<header id="header">
<div class="logo">
<img
id="header-img"
src="https://www.logodesignlove.com/images/monograms/tesla-symbol.jpg"
alt="tesla logo"
width="100"
/>
</div>
<nav id="nav-bar">
<il><h1>
<a class="nav-link" href=#whatisTesla?> what is Tesla?</a>
<a class="nav-link" href=#Models> Models</a>
<a class="nav-link" href="#Pricing"> Pricing</a>
</h1></il>
</nav>
</header>
<body>
<section id="whatisTesla?">
</section>
<div>
<iframe id="video"
width="560"
height="315"
src="https://www.youtube.com/embed/laW8rtUEMyc" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
</div>
<section id="Models">
</section>
<section id="Pricing">
</section>
</body>
<footer>
<form id="form" action="https://www.freecodecamp.com/email-submit">
<input name="email" id="email" type="email" placeholder="Enter your email address" required/>
<input id="submit" type="submit" value="Get Started" class="btn"></input>
</form>
</section>
</footer>
header {
positon: fixed;
top: 0;
left: 0;
width: 100%;
display: flex;
}
Your code so far
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Firefox/91.0
Challenge: Build a Product Landing Page
Link to the challenge: