Https://www.freecodecamp.org/learn/2022/responsive-web-design/learn-css-colors-by-building-a-set-of-colored-markers/step-46

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

In the .green CSS rule, set the background-color property to a hex color code with the values 00 for red, FF for green, and 00 blue.
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 red">
    </div>
    <div class="marker green">
    </div>
    <div class="marker blue">
    </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 red">
    </div>
    <div class="marker green">
    </div>
    <div class="marker blue">
    </div>
  </div>
</body>
</html>
\ file: h1 {
text-align: center;
}

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

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

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

.green {
background-color: rgb(#000000, #00FF00, #000000);
}

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

h1 {
text-align: center;
}

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

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

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

.green {
background-color: rgb(0, #00FF00, 0);
}

.blue {
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/89.0.4389.114 Safari/537.36 Edg/89.0.774.68

Challenge: Step 46

Link to the challenge:

Hint: An example of hex code #4B5320
Hex structure
*starts with #
*first pair (4b) represents the Red
*second pair(53) represents the Green
*Third pair(20) represents the Blue
in sum
element {
background-color: hexCode;
}

1 Like

it’s two ways of applying colors to your page, so you either use one or another.
you should remove rgb completely and instead of it use hex color:

.green {
background-color:  #00FF00;
1 Like

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