Learn CSS Variables by Building a City Skyline - Step 40

I dont know whats wrong here:
When i check the code it says:

Test

Sorry, your code does not pass. Keep trying.

Hint

You should apply a background to .bb1a.

  **This is my Code**

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

Yes, you should apply a background.
You applied two background-color.

background and background-color are differnt

Hope that helps :+1:

I correct my mistake but its still not working:

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

It still says:

background-color: var(–building-color1);
background:
linear-gradient(
–building-color1,
–window-color2
);
}
.bb1b {
width: 80%;
height: 10%;

Test
Sorry, your code does not pass. Hang in there.

Hint
You should apply a background to .bb1a.

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 (').

This is how you refer to a variable in css.
Do you think your variable references are correct?

1 Like

not sure I understood the last post you wrote.
I was suggesting to you earlier that you must use the var keyword to reference a variable in css…

nevermind i got it thanks for youre help