I’ve edited 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 easier to read.
See this post to find the backtick on your keyboard. The “preformatted text” tool in the editor (</>) will also add backticks around text.
You’re using a background-color declaration, you should use only background. Also, you can’t have a space between the declaration and the colon “background-color :”.
While I respect your efforts in trying to help someone else, it’s always a good idea to revise and check the information/help you are trying to give.
1. The background-color property works just fine here, the background property is actually a short hand of many properties (8 to my count) related to the background, you can find more information on that here.
2. While it is not common practice to include spacing between the property and colon background-color : this does not effect the behavior, or the ability for the declaration to be read by the browser.
I do agree that it is a bit more organized to leave out this spacing though
@Tunze As said above, some more information in regards to the problem you are having, and what it is you are trying to execute will help others provide an appropriate response to the post.
With a bit more detail, there are plenty of people that would be happy to help you out!
@Kyle-S-Thompson Thanks for giving us a more comprehensive answer.
My intention here was to help @Tunze to pass his code in the challenge without giving him the answer directly. I actually run his test in the challenge and it won’t accept background or even the space before “:”. So the problem is not with his code, the problem is with the challenge test not accepting his answer. And thus, my answer to help him.
Maybe a PR to make the challenge tests more relaxed?