Help with step 51, please. :D Learn CSS Variables by Building a City Skyline

Hi everyone,
i cant seem to find the mistake.

been stuck for a long time again…

please help.

1 Like

The Structure for the standard Linear Gradient is:


The tutorial is asking you to add red:
RED = rgb(255, 0, 0)

background: linear-gradient(90deg, rgb(RED COLOR CODE HERE ))

To help understand Gradients, you can check out this Gradient Generator:

Screenshot 2022-03-26 1.27.37 AM

thank you Alless!

but even with that it still has the same hint: " You should give .bb2b a background property." am I adding it in the wrong place?

The rgb Color Code for red:
rgb(255, 0, 0)
has to replace : rgb(RED COLOR CODE HERE)

Thank you!

i am still trying to figure out the rgbs but I got it now.


If You want to know more about the different ways that gradients are written, here is a good article:

Sorry Alless,
even if i change the color to random rgb, it still shows the same hint…

Which Question are you on.

still stuck at step 51 :sweat_smile:

Is this the problem you have in front of you?

yes, that’s the one.

This one is Tricky… It may take a while for me to figure out how to explain it.

hi Alless have you figured it out yet?

i am still stuck at 51 :rofl: :sweat_smile:

I am stuck at this step still

Hello @ALLESS and @odnoo.sumi,

The step you are stuck on @odnoo.sumi is the 51 right?

It looks like the challenge I have is different, could someone provide the exact link for this step? Thanks in advance :slight_smile:

Hi @LucLH ,

yours seems a bit different.
Mine didn’t ask for a pure red.

OK thanks @odnoo.sumi,

The step gives a good tip:

  color1 50%,
  color2 50%,

About your code, there are few mistakes:

  • Here, you don’t need to add a direction
  • When you are calling your variables, you forgot the key word var
  • Add two percentages as you did was an interesting approach but cannot work in the case of this step (they are expecting you to do something else), you should follow the template of the tip gave by the step in order, so two times the variable --building-color2 and two times the variable --window-color2

Tell us if it is still confuse for you.


haha it worked,

thank you @LucLH !

1 Like

Glad you figured it out @odnoo.sumi !

1 Like

still confused,need more explanation

1 Like