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

My 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

If 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>

Yea sorry I typed that wrong, I have been putting it under the head tag.

Can you post your code? Have you debugged the file path?

.

I 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?

sorry having trouble posting the code..

<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.

<style type="text/css">
h1 {
color:white;
background-color: #E14607;
}
</style>

<body style="background-color: #BDD4DE;">


<p style="font-weight: bold">




            ```

Don't use these quotes = ” ” Use the regular ones = " "