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

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

Your code so far
unable to select the marker one in step 18

<!-- file: index.html -->
<!DOCTYPE html>
<html lang="en">
    <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">
    <h1>CSS Color Markers</h1>
    <div class="container">
      <div class="marker one">
      <div class="marker">
      <div class="marker">
/* file: styles.css */
h1 {
  text-align: center;
.marker {
  width: 200px;
  height: 25px;
  margin: 10px auto;

/* User Editable Region */

.marker one {

/* User Editable Region */

Your browser information:

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

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

Link to the challenge:

Please talk to us about what the error message is and what you have tried to fix the error message.

Then, create a new CSS rule that targets the class one and set its background-color property to red.

It looks like you need to target the one class, not the marker class. I would remove the word marker

thanks.but need explanation
why I have to skip the word marker here

The instructions don’t mention the word marker anywhere. Generally, you don’t want to add anything extra the instructions don’t talk about.

1 Like

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