Learn CSS Variables by Building a City Skyline - Step 40

Tell us what’s happening:


Sorry, your code does not pass. Don’t give up.


You should apply a background to .bb1a right after the background-color.

Your code so far
.bb1a {
width: 70%;
height: 10%;
background-color: var(–building-color1);
background: linear-gradient(–building-color1, --window-color1);

You aren’t quite accessing the custom CSS variables correctly. You are missing something. Look at how you accessed the --building-color1 variable in the background-color property as an example.

Understood. You have to add the var to access the building color

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