Learn CSS Variables by Building a City Skyline - Step 78

Tell us what’s happening:

I don’t know how I changed the first line gradient.
the HINT says ’ You should not alter the first repeating-linear-gradient.’

Your code so far

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

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36

Challenge Information:

Learn CSS Variables by Building a City Skyline - Step 78

Hello!

Try placing a comma after the first repeating-linear-gradient, instead of the ; semi-colon.

See if that makes a difference.

I hope this helps you!

Happy coding!

But now the hint says ’ You should add a repeating-linear-gradient with a first color of --building-color4 from 0% to 10% .’

image

Delete the second occurance ofbackground: as this is not needed.

Happy coding

Thank you , the code passed

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