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

Im stuck on step 37 of building a set of colored markers, Im not sure what im doing wrong , this is what the code is asking me to do:

`` First, in the h1 rule, use the rgb function to set its background-color to cyan.

This is what i coded

h1 {
  background-color: rgb (0, 255, 255);
  text-align: center;
}

And this is what the hint is telling me but im already doing that

Hint

Your h1 CSS rule should have a background-color property set to rgb(0, 255, 255).

The rest of the code isnt really that relevant but here: (if you want to read it)-the link to the challenge is at the very bottom so if you scroll al the way down its there :slight_smile:

<!-- 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 one">
      </div>
      <div class="marker two">
      </div>
      <div class="marker three">
      </div>
    </div>
  </body>
</html>
/* file: styles.css */

/* User Editable Region */

h1 {
  background-color: rgb (0, 255, 255);
  text-align: center;
}

/* User Editable Region */


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

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

.one {
  background-color: rgb(255, 0, 0);
}

.two {
  background-color: rgb(0, 255, 255);
}

.three {
  background-color: rgb(0, 0, 0);
}

Your browser information:

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

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

Link to the challenge:

Your code

rgb (0, 255, 255);

Hint code:

rgb(0, 255, 255);

Do you see the difference?

oh yh I see the space between the rgb and the bracket i didnt think it would affect my code, thanks I got it right!

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