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

Tell us what’s happening:

Describe your issue in detail here.

Your code so far

Hi i am very confused on how make both classes in the div element and why its giving me an error

<!-- 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">

<!-- User Editable Region -->

      <div class="marker red">
      <div class="sleeve">
       <div class="cap"> </div>

<!-- User Editable Region -->

      <div class="marker green">
      </div>
      <div class="marker blue">
      </div>
    </div>
  </body>
</html>
/* 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;
}

.sleeve {
  width: 110px;
  height: 25px;
  background-color: rgba(255, 255, 255, 0.5);
}

.red {
  background: linear-gradient(rgb(122, 74, 14), rgb(245, 62, 113), rgb(162, 27, 27));
}

.green {
  background: linear-gradient(#55680D, #71F53E, #116C31);
}

.blue {
  background: linear-gradient(hsl(186, 76%, 16%), hsl(223, 90%, 60%), hsl(240, 56%, 42%));
}

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36

Challenge Information:

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

1 Like

You appear to have created this post without editing the template. Please edit your post to Tell us what’s happening in your own words.
Learning to describe problems is hard, but it is an important part of learning how to code.
Also, the more you say, the more we can help!

Your div class sleeve and cap should have closing div tags, and add that both sleeve and cap class div between all three marker divs by copy and paste it between opening and closing tags.
@owen3

1 Like

Hi thanks for the help im still having a hard time understanding what to do i have looked at a few diffferent places and this is the revision i have come up with although it is still not working.

       <div class="cap">
      <div class="sleeve"> </div>
      <div class="marker red"></div>
      </div>

Your .cap closing tag is supposed to be directly after the opening tag of the .cap.
And try moving your .cap and .sleeve so that it is in your .marker

Example, I am nesting my .polony and .cheese and .olives in my .pizza:

<div class="pizza">
<div class="polony"></div>
<div class="cheese"></div>
<div class="olives"></div>
</div>
2 Likes

Hello @owen3 !

I am thinking you may have resolved this problem.

Suggestion: Reset the step to get the original beginning code for this step back. This will not affect any previously completed steps. It will only refresh this code.

Move the above quoted code to above the sleeve class, your code should pass for you.

May your coding path be smooth.

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