Learn CSS Variables by Building a City Skyline - Step 117

Tell us what’s happening:
I’m not sure what I am missing after adding the :root

Your code so far


The challenge seed code and/or your solution exceeded the maximum length we can port over from the challenge.

You will need to take an additional step here so the code you wrote presents in an easy to read format.

Please copy/paste all the editor code showing in the challenge from where you just linked.

Replace these two sentences with your copied code.
Please leave the ``` line above and the ``` line below,
because they allow your code to properly format in the post.

Your browser information:

User Agent is: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0

Challenge: Learn CSS Variables by Building a City Skyline - Step 117

Link to the challenge:

1 Like

:root {
–building-color1: #000;
–building-color2: #000;
–building-color3: #000;
–building-color4: #000;

this doesn’t work?

Hey there. This works and that’s cool. But usually we are not giving direct answers here.

This is stumping me, I have created all the necessary variables.

Hint You should add --building-color1 with a value of #000.

@media (max-width: 1000px) {
:root {

The hyphens I typed in were wrong hence why I was getting an error.

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