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

cian lynam
cian lynam
2,435 Points

My background color wont change! help

For some reason my background wont change and none of css is working how do i fix it?

Could you provide a sample of the code you've written that is not working?

cian lynam
cian lynam
2,435 Points

I wrote body{ background-color: orange;} and i trying to change it and it wont

What are you trying to change it to that is not working?

cian lynam
cian lynam
2,435 Points

Im trying to change it to blue and i also tried, a {text-decoration:none;} and that wont work either

Are you trying to change the background color of the body to blue or the background color of anchor tags? Sorry for the back and forth. I'm just trying to better understand the code you're writing that is not working and what specifically you're trying to accomplish.

cian lynam
cian lynam
2,435 Points

Its ok. Im trying to change the color of the body.

Give this a try.

body {
   background-color: blue;
}

1 Answer

Steve Suresh
Steve Suresh
13,185 Points

Have you included a reference to your css file in the head section of your html document?