Learn CSS Variables by Building a City Skyline - Step 78

Tell us what’s happening:
I’m stuck here…what really could be wrong with my code. Help .
Your code so far

WARNING

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 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36

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

Link to the challenge:

This is the part where I’ve a challenge
.fb1c {
width: 100%;
height: 80%;
background: repeating-linear-gradient(
90deg,
var(–building-color4),
var(–building-color4) 10%,
transparent 10%,
transparent 15%
),
background: repeating-linear-gradient(
var(–building-color4),
var(–building-color4) 10%,
var(–window-color4) 10%,
var(–window-color4) 90%,
);
}

  • You have to add two dashes before each color: --building-colorX
  • Delete the comma after the last color
  • Delete the ‘background’ property and the colon before the second gradient.
1 Like

you have two errors that I can see.

one is the use of background in the middle.
the second is the comer on the last line.

Comers in code are a little like they are in a sentence.
you dont need to repeat, you just add to.

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