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 trialHenry Ng
337 Pointsmain.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; }
Henry Ng
337 Pointsi was missing the equal sign... lol thanks! apparently your telepathy is quite developed!
Sidney François
2,092 PointsYes! Time for world domination. Glad to help. ;)
Henry Ng
337 Pointsis there some way I can click that you've answered the question?
Sidney François
2,092 PointsI'll create an answer and you'll have to mark it as "Best Answer". ;)
1 Answer
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. :)
Sidney François
2,092 PointsSidney François
2,092 PointsYou 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">