Learn CSS Variables by Building a City Skyline - Step 78

Tell us what’s happening:

hi, my code does not pass the challenge

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%
    );
    background: repearting-linear-gradient(90deg, var(--building-color4), 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/126.0.0.0 Safari/537.36

Challenge Information:

Learn CSS Variables by Building a City Skyline - Step 78

hi and welcome to the forum. What was your question?

my code does not pass the challenge

don’t repeat the background css property. Just add the gradients in a comma separated list as per the example (add them to the background property you already have)

Initially you had this:

  background: repeating-linear-gradient(
      90deg,
      var(--building-color4),
      var(--building-color4) 10%,
      transparent 10%,
      transparent 15%
    )

So just put a comma after the last bracket and write the second gradient values there (but before the closing curly brace)

2 Likes

Also, the solution is asking you to build a gradient and not saying witch angle so you don’t need the 90 deg again