Background color on div class

I was trying to change the background color for my div “penguin-top” class. In my CSS style section I added a class called .penguin-top as follows:

<style>
.penguin
{
--penguin-skin: grey;
}
.penguin-top
{
background: var(--penguin-skin);
}
</style>

As you can see it is preceded by penguin class with a color declaration for the penguin-skin variable,. I still get the following error message:
The penguin-skin variable should be applied to the background property of the
penguin-top class.

Hi @ateferi !

Welcome to the forum!

For challenges it is always best to use the ASK for help button which will include your full code and the challenge link.

I think this the challenge with the known typo.

If so, usually people fail this challenge because they didn’t follow the instructions and fixed the typo for the penguin class.

Read the instructions carefully .
But it is hard to tell without the full code and challenge link.

Can you edit your post for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.

Note: Backticks are not single quotes.

See this post to find the backtick on your keyboard. The “preformatted text” tool in the editor ( </> ) will also add backticks around text.

Thank you so much for your help. It is true, I missed some minor instructions. Need to pay more attention to the instructions next time. Thanks

Thank you so much for your response. It is just that I didn’t follow the instructions clearly. It was a minor mistake. Thanks a bunch

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