Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

CSS How to Make a Website CSS: Cascading Style Sheets Use ID Selectors

main.css file is not connecting to index.html and i don't know why

i'm trying to link the CSS file with the html file but it's not working. in the training exercise, my page doesn't turn orange.

in the index.html file:

<link rel="stylesheet" href"css/normalize.css">
<link rel="stylesheet" href"css/main.css">

in the main.css file in the css folder:

body { background-color: orange; }

Sidney François
Sidney François
2,092 Points

You will need to post some code so we know what is happening. My telepathy skills aren't fully developed just yet.

If your code doesn't look something like this it won't work:

<link rel="stylesheet" type="text/css" href="theLocation/theName.css">

i was missing the equal sign... lol thanks! apparently your telepathy is quite developed!

Sidney François
Sidney François
2,092 Points

Yes! Time for world domination. Glad to help. ;)

is there some way I can click that you've answered the question?

Sidney François
Sidney François
2,092 Points

I'll create an answer and you'll have to mark it as "Best Answer". ;)

1 Answer

Sidney François
Sidney François
2,092 Points
<link rel="stylesheet" href="css/normalize.css">
<link rel="stylesheet" href="css/main.css">

The devil is in the details. :)