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

Tell us what’s happening:

hello everyone kindly walk me through this.

Your code so far

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

<!-- User Editable Region -->

    <div class="container">
      <div class="marker">
        <div class="marker">
          <div class="marker">
      </div>
    </div>

<!-- User Editable Region -->

  </body>
</html>
/* file: styles.css */
h1 {
  text-align: center;
}

.marker {
  width: 200px;
  height: 25px;
  background-color: red;
  margin: auto;
}

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.1 Safari/605.1.15

Challenge Information:

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

your div is not closed :

 <div></div>

you need tree divs inside of your conteiner div…

Thank you for your reply. here’s a look at what I did.

the first div class marker is stil not closed,you are missing the closing </div>

here’s what I’ve done Zaklina.

why did you do that for?Put a tree open and closed div s inside the container ?
What is confusing about that?

<div class="container">
<div></div>
<div></div>
<div></div>
</div>

Hey but the instruction says “add two more div elements and give them each a class of marker”

you should have tree divs in the container . one was set in the lesson…

Kindly be patient with me Zaklina. Here’s what I’ve done so far.

you marker divs ,close opening divs ,put a > to close it…

1 Like

Really truly appreciate Zaklina. That worked!!!

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