Learn CSS Variables by Building a City Skyline - Step 51

Tell us what’s happening:

Can’t figure out why it won’t pass my code. As far as I can tell, even after searching other forum posts on the same question, everything is correct.

Your code so far

.bb2b {
width: 100%;
height: 100%;
background: linear-gradient(
var(–building-color2) 0%,
var(–building-color2) 6%,
var(–window-color2) 6%,
var(–window-color2) 9%,
);
}

Edit: Disregard, I found the error. I had a comma after the 9%

Welcome to our community!
Your colors should have two dashes in front of their names. Check that out.

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