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

Tell us what’s happening:
Describe your issue in detail here.
I thought that this is what the question meant and I have tried so many variations but it still keeps telling me to nest my new div elements within the container one. What am I doing wrong? Please can someone help me here, I thought I finally understood it.

  **Your code so far**
/* 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"><div class="marker"><div="marker"></div></div></div></div>
/* 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 (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 14

Link to the challenge:

Hello, each div needs its closing tag
behind the opening tag, you gave the
last div 4 closing tags in your code.
Best give each div its own line as long as it is empty.

Here’s a keyboard shortcut trick to copy the same
element multiple times:
Select what you want to copy, in your case
<div class="marker"></div>",
then press and hold shift and alt
press the down arrow as many times as you need,
in this challenge two more times.

Hope it helps

Thank you so much for taking the time to answer and it was very helpful, back on track again. Thanks.

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