Learn-css-variables-by-building-a-city-skyline Step 40

J’ai un souci à ce niveau… J’ai bien fait le code comme convenu mais ça ne passe pas… I need a help please (Step 40)

1 Like

Welcome to our community!

Your colors should be defined as variables in ‘background’ property:


This is just guidance.

You have the example of adding a color as a variable in the ‘background-color’ property in the same .bb1a selector.


Thank you so much @DobarBREND for your explanation… you’re so gentil

1 Like

hi mate, i think i found ypur mistake, as we have already declared variable in root there is no need to declare again anywhere and when calling variable we need to use var(variable name )
for this case
Mod edit: Removed Solution

1 Like

thank you bro. I’ve missed out typing “var” for the color name too.


It is great that you solved the challenge, but instead of posting your full working solution, it is best to stay focused on answering the original poster’s question(s) and help guide them with hints and suggestions to solve their own issues with the challenge.

We are trying to cut back on the number of spoiler solutions found on the forum and instead focus on helping other campers with their questions and definitely not posting full working solutions.


please send code i dont’t understand ;
i don’t solve this problem since morning

1 Like

If you have a question about a specific challenge as it relates to your written code for that challenge and need some help, click the Ask for Help button located on the challenge (it looks like a question mark). This button only appears if you have tried to submit an answer at least three times.

The Ask for Help button will create a new topic with all code you have written and include a link to the challenge also. You will still be able to ask any questions in the post before submitting it to the forum.

Thank you.