Learn CSS Variables by Building a City Skyline - Step 77

Tell us what’s happening:

I am unable to understand where I am making mistake in adding the property “transparent” I have different ways but could not find the solution. please help to fix it!

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) 0%, var(--building-color4) 10%, transparent 10%, transparent 15%);
}

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

Challenge Information:

Learn CSS Variables by Building a City Skyline - Step 77

Hi @silenthero875 and welcome to our community!

If you want to have multiple colour stops, you need to format your code as per this example:

/* like this */
var(--color1) 10% 20%, 
var(--color2) 20% 30%,
etc...

/* not like this */
var(--color1) 10%, var(--color1) 20%, 
var(--color2) 20%, var(--color2) 30%,
etc...
1 Like

thank you so much for helping me

1 Like