Why my code does not pass

The task: Fill in .bb3 with a repeating-linear-gradient . Use 90deg for the direction, your building-color3 for the first two colors, and window-color3 at 15% for the third. When you don’t specify a distance for a color, it will use the values that makes sense. In this case, the first two colors will default to 0% and 7.5% because it starts at 0% , and 7.5% is half of the 15% .
My code:
.bb3 {
width: 10%;
height: 55%;
background: repeating-linear-gradient(
90deg,
var(–building-color3),
var(–building-color3)7.5%,
var(–window-color3)15%
);
}

If you have a question about a specific challenge as it relates to your written code for that challenge and need some help, click the Ask for Help button located on the challenge (it looks like a question mark). This button only appears if you have tried to submit an answer at least three times.

The Ask for Help button will create a new topic with all code you have written and include a link to the challenge also. You will still be able to ask any questions in the post before submitting it to the forum.

Thank you.

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% ."

The first two colors shouldn’t have any percentage. The 15% is equally divided between them, starting from 0% for the first color, and adding automatically 7.5% to the second.

thanks for the advice

1 Like

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