Got stuck on 75 step of building a city skyline

Here is the instruction of step 75

Add a repeating-linear-gradient to .fb1c below the one that’s there; use your --building-color4 from 0% to 10% and --window-color4 from 10% and 90%. This will fill in behind the gradient you added last.

Hello Campers, what is wrong with this rule?

.fb1c {

  width: 100%;

  height: 80%;

  background: 

    repeating-linear-gradient(90deg,

      var(--building-color4) 0%,

      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 talk about how you got stuck trying to fix the code instead of copy-pasting the instructions

My code couldn’t pass fcc test.

I am aware of that. Did you do anything to try to figure out why the code wasn’t passing? Telling us what you tried helps us help you.

Here are some troubleshooting steps you can follow. Focus on one test at a time:

  1. Are there any errors or messages in the console?
  2. What is the requirement of the first failing test?
  3. Check the related User Story and ensure it’s followed precisely.
  4. What line of code implements this?
  5. What is the result of the code and does it match the requirement?

If this does not help you solve the problem, please reply with answers to these questions.

Here are the answers for questions 1 and 5 respectively.

YES, there is a message in the console which says - “You should add a repeating-linear-gradient with a first color of --building-color4 from 0% to 10%.”

The result of the code actually reflected on the project even though it couldn’t pass.

make sure you did not add anything extra, that can also cause tests to fail

for more help, share the link to the challenge

Here is the link to the challenge

you added something that was not asked for, so it’s failing

I hope you have noticed something that’s causing it fails, right?

Thank you, I have passed.

1 Like