Error in an exercise

Step 41

You want to add the same gradient to the next two sections. Instead of doing that, create a new class selector called bb1-window, and move the height and background properties and values from .bb1a to the new class selector.

I can’t get out of this exercise, I’ve already done it according to the instructions, but it always shows the same error, asking to move the height property and its value, if anyone can help me please.

Hi! Please provide a link to the task

Thanks! And show your code to find your issues, of course

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


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

You don’t need these moved properties in .bb1a selector anymore, you have a new selector with it

Thank you, I managed to solve it.

1 Like

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