CSS Variables & City Skyline - Step 51

Hello!

I keep getting this error in the Step 51:

You should give .bb2b a background property.

.bb2b {
  width: 100%;
  height: 100%;
  background: linear-gradient(
    var(–building-color2) 0%, 
    var(–building-color2) 6%, 
    var(--window-color2) 6%, 
    var(–window-color2) 9%
    );
} 

Thank you for your help! :smile:

1 Like

i have the same issue is it a glitch

2 Likes

Oh! and I have realized that there were typos with the dashes. I have just fixed them, but the error keeps happening:

.bb2b {
  width: 100%;
  height: 100%;
  background: linear-gradient(
    var(-–building-color2) 0%, 
    var(–-building-color2) 6%, 
    var(--window-color2) 6%, 
    var(-–window-color2) 9% 
    );
} ```

Hello @katikat94 !

I had to reset the step and enter everything on one line, or until it wrapped to the next line, to get it to pass.

You stated you have fixed the problem with the dashes before the colors. Go going!

I hope this helps you get past this step.

If you are still have difficulty after the above suggestion, here are some other things you may try to move on in your coding journey.

  • Reset step
  • Refresh page (F5)
  • Some browser extensions, such as ad-blockers and dark mode extensions can interfere with the tests.
  • If you are having problems, recommendation is to disable extensions that modify the content or layout of pages, while taking the course.
    • Try a different browser.

Happy coding!

Thank you everyone for your help! I was able to submit the solution using the Mobile App.

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