Learn CSS Variables by Building a City Skyline - Step 78

I dont understand why.

Sorry, your code does not pass. Try again.

You should add a repeating-linear-gradient with a first color of --building-color4 from 0% to 10%.

CODE:

background: repeating-linear-gradient(
      90deg,
      var(--building-color4),
      var(--building-color4) 10%,
      transparent 10%,
      transparent 15%
    ), repeating-linear-gradient(
      90deg,
      var(--building-color4) 0%,
      var(--building-color4) 10%,
      var(--window-color4) 10%,
      var(--window-color4) 90%,
  );
}

Please post a link to the Step. Also, please talk to us about how the instructions or error message is confusing. Thanks

this is the link

I dont understand the solution

is a degree value requested?

1 Like

no but if i delete de degree and the code is like this:

background: repeating-linear-gradient(
      90deg,
      var(--building-color4),
      var(--building-color4) 10%,
      transparent 10%,
      transparent 15%
    ),repeating-linear-gradient(
      var(--building-color4) 0%,
      var(--building-color4) 10%,
      var(--window-color4) 10%, 
      var(--window-color4) 90%,
    );
}

this shows up:

You should use a second color of --window-color4 from 10% to 90% .

You didn’t need comma after your last color variable percentage.

I do not think you need to specify 0%, you can just have a comma. After 90%, there is no other value, that’s the end of the list, get rid of the comma.

that was the issue, thank you!

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