Learn CSS Variables by Building a City Skyline - Step 77

Tell us what’s happening:

Hello, I really don’t know what I am doing wrong here. It says: You should give .fb1c a background with a repeating-linear-gradient. I have added some spaces to the percentage values and after var, but that didn’t work either.

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

Your browser information:

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

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

Link to the challenge:

1 Like

Var is a function. There should not be any space between it and the bracket to its right

1 Like

I had it first like you said. But that didn’t work. now it works, strange. Thanks for the help

1 Like