I’m on the product landing challenge story #13. I’ve added so many things to the code that it looks like a mess. I’m not giving up. Hope someone can help me!
or
HTML
<!DOCTYPE html>
<link rel="stylesheet" href="styles.css">
<html>
<main>
<header id="header">
</header>
<div id="header">
</div>
<div id="header">
<nav id="nav-bar" class="navbar">
<div class="collapse navbar-collapse" id="navbarNavDropdown">
<ul class="navbar-nav">
<li class="nav-item active">
<a class="nav-link" href="#about">About<span class="sr-only"></span></a>
</li>
<li class="nav-item">
<a class="nav-link" href="#genz">Generation Z</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#price">Price</a>
</li>
</ul>
</div>
</nav>
<div id="header">
<img id="header-img" src="http://logolog.co/wp-content/uploads/2004/09/human-logo.gif" height="200px">
</div>
</header>
<iframe id="video" width="350" height="200" src="https://www.youtube.com/embed/2J8bDkALBicautoplay=1mute=1" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>">
<h3 id="about">
About
</h3>
<p> Humans have been around for the past 2.5 billion years, and Human® constantly strives to bring you the latest version of our product. </p>
<h3 id="genz"> Generation Z</h3>
<p>Order our latest Human! Now with built-in Social Anxiety™!
<h3 id="price">Price</h3>
<p> Starting at $3000 USD per year subscription for 18 years, before your Human becomes self sustaining! </p>
<br>
</main>
<form id="form" action="https://www.freecodecamp.com/email-submit">
<div id="form">
<label id="email-label" for="email">Get a quote today!</label>
<br>
<input id="email"
type="email"
name="email"
required
placeholder="Insert Email">
</div>
<div id="form">
<input id="submit" type="submit">
</input>
</form>
<footer id="footer">
<h1>Copyright 250000000AD, Human Corporation</h1>
</footer>
CSS
.header {
position: fixed;
width: 100%;
top: 0;
left: 0;
padding: 10px;
flex: center;
}
.navbar {
background: black;
color: 999999;
text-align: start;
width: 100%;
height: 140px;
position: fixed;
left: 0;
right: 0;
padding: 10px;
}
.navbar a {
display: flex;
height: 100%;
width: 100%;
top: 0%;
right: 0%;
font-size: 20px;
}
}
.iframe {
flex: 1;
}
@media (max-width: 600px) {
.iframe {
flex-wrap: wrap;
}
.container > li {
flex-basis: 50%;
}
}
.nav-link {
background-color: white;
border: none;
color: black;
padding: 40px 40px;
font-size: 20px;
}
@media only screen and (max-width: 600px) {
body {
background-color: white;
}
}