Learn css by building a city skyline step 41

Learn CSS Variables by Building a City Skyline - Step 41

I was asked to move a property and it’s property value “height property and background property” from the old selector(bb1a) to new selector(bb1-window) and I did exactly as I was asked but my code is still not being accepted. What do I do now?

.bb1-window {
  height: 10%;
  background: linear-gradient(
      var(--building-color1),
      var(--window-color1)
    );
}
.bb1a {
  width: 70%;
  height: 10%;
  background-color: var(--building-color1);
  background: linear-gradient(
      var(--building-color1),
      var(--window-color1)
    );
}

Hello @malvo,
Put the links

You should remove the height property from the class bb1a

2 Likes

Thanks to anyone who tried to help but I figured it out… Turns out all I had to do was to move the property and it’s property value instead of copying it sorry for wasting your time.

1 Like

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