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

Hello there:
I have problem adding the 2 div elements with the class marker, within the div with the class=container

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>
<div class="marker"</div>
      <div class="marker"</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/16.5.2 Safari/605.1.15

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

Link to the challenge:

This is the starting code:

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

Don’t change the starting code. Only add another two divs with the class of marker.

1 Like

i used the below but it is not working as it mention the new two divided elements should be withing the div class container.

Please post your actual code instead of a screenshot.

Don’t place the new marker divs inside of the old marker div. Place them after the old marker div.

1 Like

thank you!, i was not sure if just copy paste would work with the actual code

Copy-paste will work so long as you format the code.

When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.

You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.

See this post to find the backtick on your keyboard.
Note: Backticks (`) are not single quotes (').

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