i need help with step 21 of the Building a city skyline, i have added all the div and it still shows error. below is the link to my html
The link you gave us is to Step 21 but it doesn’t include your code, just the default code for the Step. In order to include your code you will have to copy/paste it here. Be sure to wrap your code in triple backticks:
- On a line by itself type three backticks (the backtick character is in the upper left corner of my keyboard, shares the same key as the tilde).
- Below the triple backticks paste your code.
- On a new line below your code type three more triple backticks.
<div></div>
<div></div>
<div class="background-buildings">
<div></div>
<div></div>
<div class="bb1">
<div class="bb1a"></div>
<div class="bb1b"></div>
<div class="bb1c"></div>
<div class="bb1d"></div>
</div>
<div class="bb2"></div>
<div class="bb3"></div>
<div></div>
<div class="bb4"></div>
</div>
Here are the three things you are supposed to do:
- add two empty
div
elements to the top of thebackground-buildings
element: You have done that. - add two more at the bottom of the
background-buildings
element: Have you done that? I’m not seeing it. - and one more in between
.bb3
and.bb4
: You have done that.
So I think you just have one thing to fix and then it should pass. Read the hint. This is exactly what it is telling you.
If you check the code we’ll, I did put the empty divs after the background-buildings. Whenever I run it it shows a hint that I should add two empty divs below the .bb4, when I do this it comes back to say I should add just 5 new divs
Ya, you need to get rid of the pair of divs at the very top. I’m not sure why they are there but the instructions are definitely not asking you to put them there.
OK, I think I see the confusion now. When the instructions say:
“add two empty div
elements to the top of the background-buildings
element”
they don’t mean before the background-buildings
element, they mean the first thing inside the background-buildings
element. Putting something at the “top” of an element means putting it inside the element as the very first thing inside that element.
Similar for adding something to the bottom of an element.
thank you. it worked
English is hard
Thank you…code works!
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.