My linear-gradient property doesn't work

Step 40

In .bb1a , add a gradient of type linear-gradient to the background property with --building-color1 as the first color and --window-color1 as the second.
Ok…
my code

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

does not work.
the following error appears:

Hint

You should apply a background to .bb1a.

Don’t forget to include the var keyword for each of your variables.

The way you have applied building-color1 to background-color appears to be correct. Apply the same logic to linear-gradient

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