I need help in navbar

I need help in navbar
0

#1

Hi!
Now, I make a top navbar and everything is perfect. but when I click to any word in the navbar nothing appear related to this word …
So, I need help to do that. I coded using codepen.
How to do that .
Thanks in advance!


#2

Without seeing your code, it would be very difficult to give you the correct advice. Can you please post a link to your Codepen project?


#3

Yes. Here it is >https://codepen.io/elham-zeyad/pen/MBpRBP


#4

You have referenced your link with to the id, but you haven’t used the id in any of the sections


#5

How?
Do you have any resource to help me with this part?


#6
<li><a href="#home">Home</a></li>
<li><a href="#about">About</a></li>
<li><a href="#use">Use</a></li>

You have these id’s on the links referencing, but for the links to navigate the page, you need a section referencing that link,

Ex: For#home, you should have an id to a section as <section id="home">, therefore when home is clicked it navigates to this section


#7

Perfect!
It works. Thanks a lot. :smiley: