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

Tell us what’s happening:
I don’t know what did i do wrong. I followed instruction and removed direction, but it’s not working.

Your code so far

<!-- file: index.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.css */
h1 {
  text-align: center;
}

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

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


/* User Editable Region */

.red {
background: linear-gradient (rgb(122, 74, 14) 0%, rgb(245, 62, 113) 50%, rgb(162, 27, 27) 100%);
}

.green {
  background:linear-gradient(#55680D, #71F53E, #116C31);
}

/* User Editable Region */


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

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36

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

Link to the challenge:

You added percentages to the colors. Is there a reason you did that? I don’t think the instructions asked you to do this.

Only do exactly what the instructions ask and no more. Making any changes that the tests are not expecting may cause them to fail. You (and the tests) will be much happier if you don’t add extra stuff.

I thought direction was the degree not percentage. I tried to remove percent before, but it didn’t work. I’ll try again.

You are correct. And so you want to remove the degrees at the start of the linear gradient, which you have done correctly.

What you also did is add a percentage after each color, which was not there originally. If you restart the step you will not see percentages. So it seems you added those percentages and what I’m saying is that you should not add things that the instructions do not ask you to add because it will throw the tests off.

I removed the percentages, but still received errors. Can you give me some hints how to solve it. Thank you.

I think we’ve worked together enough now that you know what I’m going to say next :slight_smile: You’ll need to paste your updated CSS in here so we can see what you did.

But you could just restart the step and then only remove the degrees (including the comma after them). That’s all you need to do to pass this step.

Already solved my problem. It’s the syntax error because i had an extra space for the ). Thanks for your help.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.