Learn CSS Variables by Building a City Skyline - Step 51

Tell us what’s happening:
I can’t figure out what other code should be written for the prompt :

Add a linear-gradient to .bb2b that uses --building-color2 from 0% to 6% and --window-color2 from 6% to 9% .

I have also gone through MDN docs , but couldn’t understand what to do for :
from 0% to 6% and from 6% to 9% …?
Your code so far

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

Your browser information:

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

Challenge: Learn CSS Variables by Building a City Skyline - Step 51

Link to the challenge:

Take another look at the example the challenge gives you

linear-gradient(
  var(--first-color) 0%,
  var(--first-color) 40%,
  var(--second-color) 40%,
  var(--second-color) 80%
);
1 Like

Thank you so much!!
oh my! it was right there and I didn’t looked at it , kinda feels dumb…

It happens to all of us.

1 Like

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