I’m having a hard time creating a navigation bar with active links.
here is the HTML:
here is the CSS:
nav {
text-align: center;
color: rgb(78, 166, 254);
display: flex;
height: 100px;
width: 100%;
}
I’m having a hard time creating a navigation bar with active links.
here is the HTML:
here is the CSS:
nav {
text-align: center;
color: rgb(78, 166, 254);
display: flex;
height: 100px;
width: 100%;
}
From what I’m seeing, you wrote your text outside your anchor. Try putting your Learn, Discover, and Lore in between <a>
and </a>
.
anchor tag show the texts which are written inside it. so you have to write the texts inside the tag
example -
<li><a href="learn.html">Learn</a></li>
Happy coding
I see now, thanks so much.
Thanks for your help.