Learn CSS Variables by Building a City Skyline - Step 60

Tell us what’s happening:
Describe your issue in detail here.

I need help with getting this done. The hint says: "
You should use --building-color3 for the first two colors."

Your code so far

.bb3 {
  width: 10%;
  height: 55%;
  background-color: var(--building-color3); background: repeating-linear-gradient(90deg,
      var(--building-color3) 0%,
      var(--building-color3) 7.5%,
      var(--window-color3) 15%
    );
}

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 60

Link to the challenge:

1 Like

The instruction: “… the first two colors will default to 0% and 7.5% because it starts at 0% , and 7.5% is half of the 15% .”

You don’t need the percentage for the first two building-colors. 15% will be automatically divided between those two colors, starting from 0% for the first, and adding 7.5% to the second.

1 Like

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