Learn CSS Variables by Building a City Skyline - Step 78

Tell us what’s happening:

I am trying to add the additional values to the gradient property but nothing works . I’m sure there is a solution but I can’t seem to figure it out. I tried adding to the original gradient property and creating one. Please help.

Your code so far

<!-- file: index.html -->

/* file: styles.css */
/* User Editable Region */

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

/* User Editable Region */

Your browser information:

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

Challenge Information:

Learn CSS Variables by Building a City Skyline - Step 78

I don’t see your second gradient? Please look at the example in the step to see how to add it.

3 Likes

Hi Heavenly. The instructions is looking for an additional repeating-linear-gradient below your current one. Look at the example code in the instructions again for the pattern to add two repeating-linear-gradient. Happy coding!

1 Like

I’m sorry the example confused me a bit but I think I figured it out.

2 Likes

Thank you both of you for the speedy response. Figured it out. Thanks a lot.

1 Like