Stuck in this step

Tell us what’s happening:
Describe your issue in detail here.

  **Your code so far**
\ file: <!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 one">
    </div>
    <div class="marker two">
    </div>
    <div class="marker three">
    </div>
  </div>
</body>
</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 one">
    </div>
    <div class="marker two">
    </div>
    <div class="marker three">
    </div>
  </div>
</body>
</html>
\ file: h1 {
text-align: center;
}

container{
background-color: black rgb(0,0,0);
}

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

.one {
background-color: red;
}

.two {
background-color: green;
}

.three {
background-color: blue;
}

h1 {
text-align: center;
}

container{
background-color: black rgb(0,0,0);
}

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

.one {
background-color: red;
}

.two {
background-color: green;
}

.three {
background-color: blue;
}

  **Your browser information:**

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

Challenge: Step 21

Link to the challenge:

You need to create a new class selector with the name “container” and set the background color to black using rgb.

don’t get it can you give me example?

Hi @angry8797,

You are using both the color name and the rgb value of the same color ( black) as a value for the background-color.

HTML / CSS Color Name :

black

Decimal Code (R,G,B) :

rgb(0,0,0)

You should only be using the rgb value.

Also, don’t forget that container is a class selector.

A class selector must start with a period ( . ) and then the class name.

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