Build a City Skyline - Step 104

Tell us what’s happening:

Hi guys, I’ve been trying to get my code to pass step 104. It’s about adding a linear gradient as background and adding transparency between 10% to 30%. I’ve tried using the same syntax as I did on step 102 but my code keeps on failing. Please assist..

Your code so far

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

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

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

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

Challenge Information:

Build a City Skyline - Step 104

@adrianomtolick in your repeating linear gradient, you forgot the double dash in your 2nd var building color 3

Thanks I had actually forgotten that however the code still doesn’t pass after adding the dashes.

Do the instructions specify a direction?

Please share your updated code.

The instruction does specify that a 90deg direction should be added to the linear-gradient.

notice how the two colors that should be the same have a different length? check for typos

:sweat_smile: Now I feel like an idiot. It actually worked after correcting the spelling. Thank you all..