[Solved] Need Help: Responsive Webdesign Beta - City Skyline

I’m stuck at Step 40.

My code does not pass the test, but I can’t find the reason.
I should add a background property with a linear-gradient:

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

Here is the error message:

You should apply a background to .bb1a .

Does anyone have a suggestion for me, please?

2 Likes

Hello @esmi_22,

I don’t know which part it is on the challenges, but I think you might look at the properties you used. You use the property background-color and background, that’s why it doesn’t pass I think.

1 Like

Hi Luc,

thanks, this was part of the solution.
And I also missed the “var” for variable.
Now I passed this step! Great!

Cool! Good luck for the next then!

1 Like

Hi Esmi, do you happen to have any pointers on how to overcome the issue. I used the exact solution that you did and I can’t seem to figure out why it won’t pass…

Hi Cecil,

Esmi may not able to help you answer that Question in a timely Manner, because it looks like she hasn’t visited the site since January.

But, A new thread can be made if you go back to your freeCodeCamp tutorial and get the Link to the Beta Tutorial, and Create a Post, asking your Question.


I was able to eventually figure it out. Took some research but I eventually got there.

background:linear-gradient(var(–building-color1), var(–window-color1));

:grin: I’m so happy to help you

1 Like

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