Step 51 Learning CSS Variable by Building a City Skyline

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

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

Please Tell us what’s happening in your own words.

Learning to describe problems is hard, but it is an important part of learning how to code.

Also, the more you say, the more we can help!

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