Hi,
Step 23 of “Learn CSS Colors by Building a set of colored Markers” has the following instructions:
Notice that the
background-color
for your marker is still red. This is because you set the red value of thergb
function to the max of255
, or 100% red, and set both the green and blue values to0
.Now use the
rgb
function to set the other colors.In the
.two
CSS rule, use thergb
function to set thebackground-color
to the max value for green, and0
for the other values. And in the.three
CSS rule, use thergb
function to set thebackground-color
to the max value for blue, and0
for the other values.
Below is my attempt:
h1 {
text-align: center;
}
.container {
background-color: rgb(0, 0, 0);
}
.marker {
width: 200px;
height: 25px;
margin: 10px auto;
}
.one {
background-color: rgb(255, 0, 0);
}
.two {
background-color rgb(0, 255, 0);
}
.three {
background-color rgb(0, 0, 255);
}
However I’m failing this step and it’s telling me that " Your .two
CSS rule should have a background-color
property set to rgb(0, 255, 0)
."
What step am I missing?