Linear gradient error?

Hello, I was just going through the Responsive Web design (Beta) Step 49 of the color markers.
From what I understood the instructions tell to change the background-color property to background property:

In the .red CSS rule, change the background-color property to background .

I tried a few times but it keeps on saying an error:

Sorry, your code does not pass. Don’t give up.
Hint
Your .red CSS rule should have a background property with the value rgb(255, 0, 0) .

I have made sure I’m doing the code correctly, so I wanted to know if it is a problem with my code or with the lesson.

My Code(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: rgb(255, 0, 0);   /* The problem */
}

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

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

Html:

<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Colored Markers</title>
    <link rel="stylesheet" type="text/css" 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>

I have tried resetting the challenge many times and also reloading the page.

The link:

This looks right to me and passes when I copy/paste it into the challenge.

What browser/version/OS are you using?

I guess its a problem from my side, I’ll just go to the next challenge for now.


Thanks for the info : )

Im using Safari 15.4

I don’t have a mac so someone else will have to test with that. Every once in a while a test won’t work the same on certain browsers. Not saying that is definitely the case here, but you never know.

1 Like

I am using a mac as well. My safari will give out message of error. But if I do it on the same device on Chrome, it works. So it should probably be browser problem.

I think the problem here is that you haven’t change the background-color property. You kept it as it is and only added #007F00. It should be like this:
background: #007F00