Learn CSS Variables by Building a City Skyline Step 77

Hi, I can’t seem to figure out how to complete the background properties using repeating-linear-gradient in step 77.

2 Likes

I’m also struggling here. I even went on GitHub to find the answer, and it doesn’t work.

hello Daniel,
you will have to add two transparent 10% and 15% separete
and same to var(–building .color)
look bellow

.fb1c {

width: 100%;

height: 80%;

background: repeating-linear-gradient(

  90deg,

  var(--building-color4),

  var(--building-color4) 10%,

  transparent 10%,

  transparent 15%

)

}

2 Likes

Thank you very much!
This worked

cool, am happy that worked

I thought you can put them together since they are the same color. Thank you so much!