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
Bradley CP
2,439 PointsMy css file isn't styling my page..
This has been a problem that keeps coming back, I don't know what I'm doing wrong?
when I ad the css file It never changes the page.
http://mistawushu.wordpress.com/2014/04/20/html-problems/
Thanks for the help!
8 Answers
Richard Duncan
5,568 PointsIf you're adding it under the doctype tag you're putting it in the wrong place which would explain why if the file path is valid it's still not working.
Try adding it between the head tags.
<head></head>
Bradley CP
2,439 PointsYea sorry I typed that wrong, I have been putting it under the head tag.
Richard Duncan
5,568 PointsCan you post your code? Have you debugged the file path?
Bradley CP
2,439 Points.
Richard Duncan
5,568 PointsI can't work out if you have the style tag unclosed, or if that style is in the css file, or really what's going on from this. Have you got a URL I can look at?
Bradley CP
2,439 Pointssorry having trouble posting the code..
Bradley CP
2,439 PointsBrad Will
534 Points<link rel="spreadsheet" href="css/style.css"
Make sure you don't have any spaces between the < and link. Same goes for anything else. Make sure there are no spaces between each.
Emerson Gonzalez
Front End Web Development Techdegree Student 22,500 Points<style type="text/css">
h1 {
color:white;
background-color: #E14607;
}
</style>
<body style="background-color: #BDD4DE;">
<p style="font-weight: bold">
```
Emerson Gonzalez
Front End Web Development Techdegree Student 22,500 PointsDon't use these quotes = ” ” Use the regular ones = " "