Hello I have a similar problem as the previous time…I can link all my nav-link elements to their section pages apart from the one I have called #pricing…what am I doing wrong?
Your code so far
<!-- file: index.html -->
<!DOCTYPE html>
<html>
<link rel="stylesheet" href="styles.css"/>
<main><main>
<body>
<header id="header">
<img src="https://cdn.freecodecamp.org/testable-projects-fcc/images/product-landing-page-logo.png" id="header-img"/>
<nav id="nav-bar">
<li><a class="nav-link" href="#Features">Features</a></li>
<li><a class="nav-link" href="#How_It_Works">How It Works</a></li>
<li><a class="nav-link" href="#Pricing">Pricing</a></li>
</nav>
<form id="form" action="https://www.freecodecamp.com/email-submit">
Email<input id="email" placeholder="name@gmail.com" type="email" name="email"></input>
<input id="submit" type="submit"></input>
</form>
</header>
<section id="Features">
<h1> Premium Materials</h1>
<p>Our trombones use the shiniest brass which is sourced locally. This will increase the longevity of your purchase.</p>
<h1>Fast Shipping</h1>
<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>
<h1>Quality Assurance</h1>
<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>
</section>
<section id="How_It_Works">
<iframe src="https://youtu.be/y8Yv4pnO7qc" id="video"><iframe/>
</section>
<section id="Pricing">
<li> TENOR TROMBONE-$600</li>
<li>BASS TROMBONE-$900</li>
<li>VALVE TROMBONE-$1200</li>
</section>
<body>
<html>
/* file: styles.css */
@media only screen and (max-width: 440px){
.nav-link{
font-style: tahoma;
color: orangered;
cursor: pointer;
margin-top: 10px;
width: 100%;
display: flex;
flex-direction: column;
align-items: center;
text-align: center;
padding: 0 50px;}
p{text-align:left;
font-style:tahoma, sans-serif;}
li {
list-style: none;
}
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36
Challenge: Product Landing Page - Build a Product Landing Page
Link to the challenge: