Learn CSS Variables by Building a City Skyline - Step 108

Tell us what’s happening: I cannot get past this part. I have looked through the forums for a while and haven’t found an answer.

You should give the second repeating-linear-gradient a first color of --building-color3 from 0% to 10% .

What am I not seeing in my code?

Your code so far

WARNING

The challenge seed code and/or your solution exceeded the maximum length we can port over from the challenge.

You will need to take an additional step here so the code you wrote presents in an easy to read format.

Please copy/paste all the editor code showing in the challenge from where you just linked.

Replace these two sentences with your copied code.
Please leave the ``` line above and the ``` line below,
because they allow your code to properly format in the post.

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36

Challenge Information:

Learn CSS Variables by Building a City Skyline - Step 108

We need your code,Post your code in your topic. Copy your code and paste it in the topic after your code so far text below Three back ticks ```

.fb6 {
  width: 9%;
  height: 38%;
  background-color: var(--building-color3);
  background: repeating-linear-gradient(
    90deg,
    var(--building-color3),
    var(--building-color3) 10%,
    transparent 10%,
    transparent 30%
  ), 
    repeating-linear-gradient(
    90deg,
    var(--building-color3),
    var(--building-color3) 10%,
      var(--window-color3) 10%,
      var(--window-color3) 30%
  );
}

You shouldn’t include the 90deg value in your second repeating-linear-gradient.

I removed it and now the error says: You should give the second repeating-linear-gradient a first color of --building-color3 from 0% to 10% .

.fb6 {
  width: 9%;
  height: 38%;
  background-color: var(--building-color3);
  background: repeating-linear-gradient(90deg,
    var(--building-color3),
    var(--building-color3) 10%,
    transparent 10%,
    transparent 30%
  ), 
    repeating-linear-gradient(,
    var(--building-color3),
    var(--building-color3) 10%,
      var(--window-color4) 10%,
      var(--window-color4) 30%
  );
}

You need to remove the stray comma before your first variable here. Also, you should be using window-color3 not window-color4.

1 Like

Stupid comma! Thanks so much!

1 Like

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