Learn CSS Variables by Building a City Skyline - Step 41

Tell us what’s happening:

Describe your issue in detail here.

My solution is wrong and I can’t figure out why,
I did everything as written in the task, but writes an error

“You want to add the same gradient to the next two sections. Instead of doing that, create a new class selector called bb1-window , and move the height and background properties and values from .bb1a to the new class selector.”

/* file: styles.css */
.bb1-window {
height: 10%;
background: linear-gradient(
  var(--building-color1),
  var(--window-color1)
); 
}

.bb1a {
width: 70%;
height: 10%;
background-color: var(--building-color1);
background: linear-gradient(
    var(--building-color1),
    var(--window-color1)
  );
}


User Agent is: <code>Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.0.0 Safari/537.36</code>

**Challenge:**  Learn CSS Variables by Building a City Skyline - Step 41

**Link to the challenge:**
https://www.freecodecamp.org/learn/2022/responsive-web-design/learn-css-variables-by-building-a-city-skyline/step-41

Hello there.

Do you have a question?

If so, please edit your post to include it in the Tell us what’s happening section.

Learning to describe problems is hard, but it is an important part of learning how to code.

Also, the more information you give us, the more likely we are to be able to help.

It says you need to move the values, so you don’t need them in the .bb1a selector anymore. Get rid of the height and background in the .bb1a selector as they are now covered by the .bb1-window selector.

3 Likes

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