Tell us what’s happening:
no 23 and 25 failed, #nav-bar and page using css flexbox
Your code so far
<!-- file: index.html -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Product Landing Page</title>
<link href="stylesheet" rel="styles.css">
</head>
<body>
<header id="header">
<div class="image-logo">
<img src="" id="header-img">
</div>
<nav id="nav-bar">
<ul>
<li><a href="#features" class="nav-link" value="feature">Features</a></li>
<li><a href="#Howitwork" class="nav-link" value="how-it-work">HowItWorks</a> </li>
<li><a href="#pricing" class="nav-link" value="Price">Pricing</a></li>
</ul>
</nav>
</header>
<h1>Handcrafted, home-made masterpieces
</h1>
<form id="form" action="https://www.freecodecamp.com/email-submit" method="post">
<input id="email" placeholder="Enter your email address" type="email" name="email">
<input id="submit" type="submit" value="submit">
</form>
<div id="features">
<h2>Premium Materials </h2>
<p>Our trombones use the shiniest brass which is sourced locally. This will increase the longevity of your purchase.</p>
<h2>Fast Shipping</h2>
<p>We make sure you recieve your trombone as soon as we have finished making it. We also provide free returns if you are not satisfied.</p>
<h2>Quality Assurance</h2>
<p>For every purchase you make, we will ensure there are no damages or faults and we will check and test the pitch of your instrument.</p>
</div>
<div id="Howitwork">
<video id="video" controls>
<source src="product-video.mp4" type="video/mp4">
Your browser does not support the video.
</video>
</div>
<div id="pricing">
<p>
Lorem ipsum.
Lorem ipsum.
Lorem ipsum dolor.
Lorem ipsum.
</p>
<p>
Lorem ipsum.
Lorem ipsum.
Lorem ipsum dolor.
Lorem ipsum.
</p>
</div>
</body>
</html>
/* file: styles.css */
#nav-bar{
position: fixed;
top: 0px;
}
header {
justify-content: flex-end;
position: positioned;
display: flex;
flex-direction: row;
flex-wrap: none;
width: 100%;
top: 0;
left: 0;
padding: 1em;
}
@media (max-width: 768px){
.plp{
width:100vw;
margin:20px auto;
}
}
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36
Challenge Information:
Product Landing Page - Build a Product Landing Page