Learn CSS Variables by Building a City Skyline - Step 78

Tell us what’s happening:

I think I’m missing something with the syntax because it keeps asking me not to replace my previous styling. What do i need to do to keep it from doing that?

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.

.fb1c {
  width: 100%;
  height: 80%;
  background: repeating-linear-gradient(
      90deg,
      var(--building-color4),
      var(--building-color4) 10%,
      transparent 10%,
      transparent 15%
    ), 
      repeating-linear-gradient(
      var(--building-color4 0% 10%), 
      var(--window-color4 10% 90%)
      );
}

Your browser information:

User Agent is: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36

Challenge Information:

Learn CSS Variables by Building a City Skyline - Step 78

You didn’t pasted your code.

realized my mistake and pasted it after you beat me to it.

1 Like

You added double percentage to your variables

And your percentage should be palecd after variable ) bracket.

1 Like

it wanted both percentage values but fixing the percentage after the bracket was the solution. Thank you

Good. Keep it up, happy Coding!

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