Learn CSS Variables by Building a City Skyline - Step 40

Code is correct but not working
Its says: You should apply a background to .bb1a right after the background-color altho I already applied it.

My code so far:

.bb1a {
width: 70%;
height: 10%;
background-color: var(–building-color1);
background: linear-gradient(–building-color1,–window-color1);
}
Challenge: Learn CSS Variables by Building a City Skyline - Step 40

Link to the challenge:

Hey :slight_smile:

Take a look at the syntax, you used linear-gradient(--building-color1, --window-color1) inside linear-gradient. Is this the correct way to reference variables in CSS? Please check the background above to see how it references the color variable

I’ve edited your code for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.

You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.

See this post to find the backtick on your keyboard.
Note: Backticks (`) are not single quotes (').