Learn CSS Variables by Building a City Skyline - Step 105

This is my code, it doesn’t seem to pass the test but I can’t seem to find what is wrong.
PLEASE HELP :frowning:

.fb5 {
  width: 10%;
  height: 33%;
  background-color: var(--building-color2);
  position: relative;
  right: 10%;
  background: 
   repeating-linear-gradient(
var(--building-color2),
var(--building-color2) 5%,
transparent 5%,
transparent 10%),
   repeating-linear-gradient(
90deg,
 var(--building-color2),
var(building-color2) 12%,
var(--window-color2) 12%,
var(--window-color2) 44%);
}

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36

Challenge Information:

Learn CSS Variables by Building a City Skyline - Step 105

2 Likes

Thank you for creating your own post!

Let’s take a look at it now in the community and see how to best offer guidance. :slight_smile:

1 Like

i was able to pass the step, thank you so much

2 Likes

Hi! You miss two hyphens -- before the variable name

2 Likes

the issue is in the typo, in the second repeating-linear-gradient declaration var(building-color2) 12%, you missed hyphens before the name of variable. it should be var(--building-color2) 12%

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.