Learn CSS Variables by Building a City Skyline - Step 51

Been having issues with step 51 of the city skyline project. I’ve followed the syntax in the example, and even the error message seems to point to this being the correct syntax, but still getting an error message. 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%,


.bb2b should have a linear-gradient transitioning from --building-color2 at 0% to 6%, and --window-color2 at 6% to 9%.

Welcome to our community!
After the last color in the linear-gradient value set, you don’t need the comma.


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