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

Tell us what’s happening:
It tells me to add a div element below the h1 and the div’s class should be set to “container”. I’ve done that but It doesn’t seem to be working, I searched it up on YouTube on a video of a guy that completes the first 10 steps of this course and I did the exact same thing as him but It still doesn’t work. Thank you for your time.

  **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>
</body>
</html>
/* file: styles.css */
h1 {
text-align: center;
}
  **Your browser information:**

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

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

Link to the challenge:

It is accepted in my browser. Can you provide more details on why it didnt pass the test?

Try reloading the browser or the website and redoing that part. Or try in another browser like Chrome

1 Like

It says this

Test

Sorry, your code does not pass. Keep trying.

Hint

Your div element should have a class attribute set to container.

Anyway I’m going to try on another browser.

Yeah it works on my browser… have you tried restarting the step by pressing “Restart Step”? :thinking:

Yeah I had tried that, but anyway I tried using chrome and It somehow worked, I don’t know what caused the issue I just know it worked. Thank you for your help.

Apparently some other campers also faced the same issue.
Anyway, glad it worked out! don’t forget to mark the thread as Answered, that’d be much appreciated :pray: