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 CSS Foundations Getting Started with CSS Adding CSS to a Page

Fedor Andreev
Fedor Andreev
6,438 Points

I have a question about the color code on this video?

I tried changing the color code c80202 to another one online. It did not change the background. So I figured maybe I need a special one for css. I deleted the whole style and refreshed the page and it didn't even go back to a white page?

What is happening? I'm so confused.

5 Answers

The color code is fine, and you don't need a 'special' one for CSS (other than the standard hex) but just to make sure, where you prefacing the code with the pound sign (#)?

Should look like this:

background-color: #FFFFFF; (where FFFFFF is any hex color code.)

Stone Preston
Stone Preston
42,016 Points

did you save your page after making the change?

Fedor Andreev
Fedor Andreev
6,438 Points

I placed the code in the wrong section. Found my problem. Thanks. I was worried that CSS would require "different codes" than digital photo software editor color codes. I thought to myself why would they make the color codes different and make things even more complicated lol. Thank god that was not the case.

If you are refreshing and nothing is changing there might be something wrong with the way your browser is caching the page. You can force the browser to reload the page by adding question marks (?) to the end of the url:

http://example.com/examplepage.htm?

or

file:///C:/Users/You/Desktop/TreeHouse/examplepage.htm?

You can also add more than one question mark to the end.

So frustrating when you bang your head against the wall trying to figure out a problem and it's something silly like code in the wrong place. :) Glad you got it fixed!