I have googled and researched all I can. I am stuck on #5 When you click a .nav-link
button in the nav
element, you are taken to the corresponding section of the landing page. I keep getting the error" Each .nav-link
element should link to a corresponding element on the landing page (has an href
with a value of another element’s id. e.g. #footer
)." From what Ive researched my coding is correct, can someone please help me out ?
**Your code so far**
<!doctype html>
<a href=“information” class=
“nav-link” >Information |
Find Us |
<section><div class="contact" id="contact"></section>
<section><div class="products" id="products"></section>
```css
\ file: nav {
border: 1px;
background-color: green;
color: white;
padding: 6px;
margin-left: auto; margin-right: auto;
position: top;
}
a {
text-decoration: none;
color: white;
font-size: 20px;
}
.flex-container {
display: flex;
flex-direction: column;
}
body{ display:flex;}
header{text-align:center;
font-family: fantasy;
font-size: 100px; width: 100%; position:fixed;}
form {margin-left: auto;
margin-right: auto;
width: 25%;}
@media only screen and (max-width: 600px) {
body {
background-color: white;
}
nav {
border: 1px;
background-color: green;
color: white;
padding: 6px;
margin-left: auto; margin-right: auto;
position: top;
}
a {
text-decoration: none;
color: white;
font-size: 20px;
}
.flex-container {
display: flex;
flex-direction: column;
}
body{ display:flex;}
header{text-align:center;
font-family: fantasy;
font-size: 100px; width: 100%; position:fixed;}
form {margin-left: auto;
margin-right: auto;
width: 25%;}
@media only screen and (max-width: 600px) {
body {
background-color: white;
}
**Your browser information:**
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.62 Safari/537.36
Challenge: Build a Product Landing Page
Link to the challenge: