Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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?