Learn CSS Variables by Building a City Skyline - Step 78

Tell us what’s happening:

You should add a repeating-linear-gradient with a first color of --building-color4 from 0% to 10%.

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%
    ),
    repeating-linear-gradient(
      90deg,
      var(--building-color4)0%,
      var(--building-color4) 10%,
      var(--window-color4) 10%,
      var(--window-color4) 90%
       );
}

/* 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/128.0.0.0 Safari/537.36

Challenge Information:

Learn CSS Variables by Building a City Skyline - Step 78

Tell us what’s happening:

Step 78
You can add multiple gradients to an element by separating them with a comma (,) like this:

Example Code
gradient1(
colors
),
gradient2(
colors
);
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.

Your code so far

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

* 1. List item

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

.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%
    );
}

/* 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/128.0.0.0 Safari/537.36

Challenge Information:

Learn CSS Variables by Building a City Skyline - Step 78

  • Be kind to your fellow community members.

You have added “90 deg” when you were not asked to. Remove that and it should pass.

1 Like

Hi I have answered your other post. I think you duplicated your question.

hi there, welcome to the forum.

Please do not create a duplicate post for the same challenge or question. I’ve merged your duplicates into one topic for now.

1 Like