Help; anyone! i am stuck here

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

I am having hard time using a class selector to target the class red

  **Your code so far**
/* file: index.html */
<!DOCTYPE html>
  <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">
  <h1>CSS Color Markers</h1>
  <div class="container">
    <div class="marker red">
    <div class="marker two">
    <div class="marker three">
/* 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;

background-color: red;

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

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

Challenge: Step 42

Link to the challenge:

Hi @victorkosi2 ,

All you need to do is target the red class.

I have tried doing it, no result yet

Where is your updated code?

class: red;

Your previous code is close. How would you target an element with the class of “red”?

1 Like

thanks I just figured it out.

background-color: rgb(0, 0, 0);

I feel many problems arise due to the unclear assignment of some tasks