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
geoff fleming
1,293 PointsCSS change not taking
in my index file I have:
link rel="stylesheet" href="css/normalize.css"
link rel="stylesheet" href="css/main.css"
(in the correct greater than / less than brackets)
main.css file is in in the CSS folder and has:
body { background-color: orange; }
However after reloading the background is not orange.
What could I have done wrong?
7 Answers
Art deHoyos
14,531 PointsJust a guess, your browser may have cached the styles. Try ctrl (or cmd) f5 to force it to pull everything down fresh. If that doesn't work, try clearing your browser's cache manually.
Other things to look at: does it work correctly in another browser? What happens if you change the named color to a hex value like #ff7700?
If none of that works, we'll probably need to see the code like Robert said.
Gary Christie
5,151 PointsDid you save after writing your code. Sometimes I make that mistake and keep hitting refresh
geoff fleming
1,293 PointsThe file was saved. hex value is not working. I've tried in both Chrome and Safari.
geoff fleming
1,293 Pointsindex head code: ```html <head> <meta charset="utf-8"> (link rel="stylesheet" type="text/css" href="css/normalize.css")
(link rel="stylesheet" href="css/main.css")
</head>
geoff fleming
1,293 Pointsmain.ccs code:
'''body { background-color: #ff7700; }'''
geoff fleming
1,293 PointsHa, i obviously suck at the markdown editor.
I've also completely cleared my cache.
geoff fleming
1,293 PointsEeeeek found the problem. CSS / css .
I for some reason named the folder in all caps.
Thanks for your patience! :-)
Robert Richey
Courses Plus Student 16,352 PointsRobert Richey
Courses Plus Student 16,352 PointsHi Geoff,
It's hard to know for sure without seeing all the code. There's a link at the bottom of this page called Markdown Cheatsheet than can explain how to include your code in a forum post. Otherwise, based on what you posted already, nothing looks out of order.