Learn CSS Colors by Building a Set of Colored Markers - Step 57

Tell us what’s happening:
Describe your issue in detail here.

What confused me was that the function is called “color stop” and I thought that might meant that the red stopped at 0% which to me would mean no red color at all.

Your code so far

/* file: index.Ext.html */
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Colored Markers</title>
    <link rel="stylesheet" href="styles.css">
  </head>
  <body>
    <h1>CSS Color Markers</h1>
    <div class="container">
      <div class="marker red">
      </div>
      <div class="marker green">
      </div>
      <div class="marker blue">
      </div>
    </div>
  </body>
</html>
/* file: styles.Ext.css */



h1 {
  text-align: center;
}

.container {
  background-color: rgb(255, 255, 255);
  padding: 10px 0;
}

.marker {
  width: 200px;
  height: 25px;
  margin: 10px auto;
}

.red {
  background: linear-gradient(180deg, rgb(255, 0, 0) 0%, rgb(0, 255, 0) 50%, rgb(0, 0, 255) 100%);
}

.green {
  background-color: #007F00;
}

.blue {
  background-color: hsl(240, 100%, 50%);
}




Your mobile information:

iPhone - iOS16.2

Challenge: Learn CSS Colors by Building a Set of Colored Markers - Step 57

Link to the challenge:

You appear to have created this post without editing the template. Please edit your post to Tell us what’s happening in your own words.
Learning to describe problems is hard, but it is an important part of learning how to code.
Also, the more you say, the more we can help!

Hi there,
It looks like you’re close!

According to the lesson:

“For the first color argument, which is currently pure red, update the rgb() function so the value for red is 122, green is 74, and blue is 14.”

That means you’ll need to update the first color rgb(255, 0, 0) to match those new values.

Let me know if you need any help along the way! :blush:

Thanks! I’ll get there if I keep working at it!

1 Like