** Step 14
Now that you’ve got one marker centered with color, it’s time to add the other markers.
In the containerdiv, add two more div elements and give them each a class of marker.**
Challenge: Learn CSS Colors by Building a Set of Colored Markers - Step 14
I’ve edited your code for readability. 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.
The first one creates a div inside a div inside a div (nested divs). They don’t want nested divs. They want divs next to each other. Not inside one another.
The second one is invalid html and will never be correct.
Here is an example of nested elements vs an example of elements that are next to one another:
This code shows one div .container and it has inside it a div .marker (made up of one opening tag and one closing tag as usual)
They want you to create more .markers which means that the two lines that make up the marker are to be copied and repeated two times
<div class="marker">
</div>
The mistake you were doing before is that you were duplicating the tags separately which changed the design of the code.
What you want to do is duplicate the whole element. That means if you are using a mouse, you would select the two lines that make up the marker and copy them in a new line beneath the existing one.
The end result will be that you create this type of design
<div class="container">
Opening tag
Closing tag
Opening tag
Closing tag
Opening tag
Closing tag
</div>
Do NOT do this:
<div class="container">
Opening tag
Opening tag
Opening tag
Closing tag
Closing tag
Closing tag
</div>
As this is nested tag design. (You did that earlier if you recall and I told you it was wrong so I am just warning you not to go back to this)