Building a nav bar

I’m trying to build a navbar and I can’t figure out what i’m doing wrong. I’m pretty sure the stylesheet is linked to the main sheet but I’m not 100% sure. Here is a screenshot of the page. The bottom portion is the css copied over from the style sheet so I don’t have to do a second screenshot. The only thing that happens when I open to a browser is that the anchor links are available and work correctly but nothing is positioned like i’m telling it to be.

Please post your code instead of a picture. Thanks

maybe try something like this “./index.css”, with a relative path to your css file, see if that solves it, happy learning :slight_smile:

Hi @jennypat !

I agree @JeremyLT that writing your code directly into the forum will make it easier for people to see the problem instead of posting picutures :+1:

As for your issue, you accidently switched rel and link on line 6.

link is supposed to be the name of the HTML element and rel is the name of the attribute.

    <link rel="stylesheet" href="index.css" />

That was the problem, Thank you!

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.