Step 49 - I don't understand why my code doesn't pass

Tell us what’s happening:
I can’t understand why my code doesn’t pass as it is exactly the same in the hint…

  **Your code so far**
/* file: index.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>
/* 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;
}

**.red {**
**background: rgb(255, 0, 0);**
**}**

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

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

  **Your browser information:**

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.1.2 Safari/605.1.15

Challenge: Step 49

Link to the challenge:

What are you trying to do do? What problems are you having with your solution? What else have you tried?

Hi ArielLeslie, thank you for your answer.

The problem is that my code is okay but it still doesn’t pass… it is the same problem with the step 60 and 66. Each time, the problem is with the background-color changed in background… I see others posts saying the same thing… maybe it’s a general problem…

Sorry for my English…

Are you by any chance using Safari? Safari has been causing problems with testing challenges.

1 Like

I’ve been stuck with that problem too with Safari until I used other browser like chrome and it worked.

1 Like

Thank you dear !! Yes, I was using Safari… I will try with Chrome. Thanks again !

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