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

Tyler Hafner
Tyler Hafner
2,496 Points

In the quiz, the question asks for 100% white and 100% black. I am entering #ffffff for white and #000000 for black

In the quiz, the question asks for 100% white and 100% black. I am entering #ffffff for white and #000000 for black, but it still says "bummer". any ideas?

1 Answer

Sam Gord
Sam Gord
14,084 Points

although i don't know what exactly is written in that quiz ( any markup or styles ? ) i think you are right , but you should try it with keywords ( white , black ) or hex code with only 3 characters like #fff , #000 or rgb(0,0,0) , rgb(255,255,255) or rgba(0,0,0,1) , rgba(255,255,255,1).

.exampleDiv{
  color: #fff;
  background: #000;
  //OR
  color: white;
  background: black;
  //OR
  color: rgb(255,255,255);
  background: rgb(0,0,0);
  //OR
  color: rgba(255,255,255,1);
  background: rgba(0,0,0,1);
}

one of these should work , they are all the same, full white and full black :D

Tyler Hafner
Tyler Hafner
2,496 Points

Thank you. I'm confident that I have the values right, but maybe I'm just getting the semantics of the question wrong. Thanks!