I need help with the “nav-links” in my scrollable menu at the top. I noticed in the project example, you can click anywhere on the whole length of the link where there isn’t text and it will still bring you to the part of the page it says but with mine it won’t scroll down unless you click the text itself. What am I doing wrong?
Oh I noticed, on desktop there was padding that was preventing me from clicking on certain spots because I had padding applied to my li’s instead of the a tags, I just switched the padding and boom it works!
If you just add display: block to your <a> elements, your nav will work like this. If you hover over the green area, the link will work, however, it won’t if you click on the pink area.