Learn CSS Variables by Building a City Skyline - Step 77

Tell us what’s happening:

i can not figure out how to use transparent I am probably way off from what ii suppose to be.

Your code so far

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

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

.fb1c {background:repeating-linear-gradient(90deg,var(--building-color4)0%,var(--building-color4)10%,var(--building-color4)10% transparent,var(--building-color4)15% transparent);
  width: 100%;
  height: 80%;
}

/* 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 Edg/126.0.0.0

Challenge Information:

Learn CSS Variables by Building a City Skyline - Step 77

Hi there!
For transparent color you didn’t need to add var color. Just add the percentage.

1 Like