Learn CSS Variables by Building a City Skyline - Step 18

<body>
    <div class="background-buildings">
        <div class="bb1"></div>
        <div class="bb1a"></div>
        <div class="bb1b"></div>
        <div class="bb1c"></div>
        <div class="bb1d"></div>
        <div class="bb2"></div>
        <div class="bb3"></div>
        <div class="bb4"></div>
      </div>
    </body>
  </html>

Hint

“You should place these div elements within the .background-buildings element.”

Hi, I really can’t see what is wrong with my code. I really would appreciate some help. I am using Chrome.

Post a link to the challenge.

This is the link for challenge 1. Never mind, the issue is that you changed the existing code above the empty line left there to type in the code.

Restart step.

This is what you get:

The empty line is marked. This is a place where you should type the div elements. Any way, read the instruction carefully again.

Sorry, is the first time I post in this forum and I was not sure what to do. I did fill the empty line, but still tells it’s wrong

It’s OK. Post the code here again.

<body>
    <div class="background-buildings">
        <div class="bb1"></div>
        <div class="bb1a"></div>
        <div class="bb1b"></div>
        <div class="bb1c"></div>
        <div class="bb1d"></div>
        <div class="bb2"></div>
        <div class="bb3"></div>
       <div class="bb4"></div>
       </div>
  </body>
</html>

This is the same code as the previous one.

Restart step.

The new three div elements go after the following:

<body>
    <div class="background-buildings">
      <div class="bb1">
        <div class="bb1a"></div>
        <div class="bb1b"></div>
        <div class="bb1c"></div>
        <div class="bb1d"></div>
      </div> ...this div tag close the .bb1 element. After it put your div elements
and they will be within the .background-buildings element.

1 Like

OK! Passed. I also understand my mistake: I misunderstood the nesting element. Thank you so Much!

1 Like
  <body>
    <div class="background-buildings">
      <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 class="bb4"></div>
    </div>

step 18 still reminds me these codes wrong

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