Build a Product Landing Page .nav-link button in the nav element

Build a Product Landing Page .nav-link button in the nav element
0

#1

Tell us what’s happening:

Failing #5 “User Story #5: When I click a .nav-link button in the nav element, I am taken to the corresponding section of the landing page.”

Despite the fact the .nav-links are taking me to the location on the page.

Your code so far

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36.

Link to the challenge:
https://learn.freecodecamp.org/responsive-web-design/responsive-web-design-projects/build-a-product-landing-page


#2

I figured this out and the user story needs to be modified as it is unnecessary to specify the element with an id that equals the link name…

<a class="nav-link" href="#home" > does not need to have an element with an id=home to work and since the user story doesn’t specify this is necessary it makes it almost impossible to troubleshoot.


#3

Go head and mark your reply as solution if it’s resolved :slight_smile: