CSS CSS Basics (2014) Understanding Values and Units Color Values Review

1 Answer

Heidi Fryzell
.a{fill-rule:evenodd;}techdegree seal-36
Heidi Fryzell
Front End Web Development Treehouse Moderator 21,246 Points

Hi Traven,

Is this the question you were having trouble with?

In the rgb function, the value rgb( 255, 255, 255) represents 100% white, while the value rgb( 0, 0, 0) represents 100% black.

The black and white values for rgb took me a while to wrap my head around.

When you have 100% red, green and blue then you have white.

When you have 0% red, green and blue then you have black. It is like the absence of color, that is how I remember it.

Hope this helps and happy coding!