directions are to " To see the cat-head element, give it a linear gradient background with #5e5e5e at 85% and #45454f at 100% ." I’m not sure where my issue is.
It is great that you solved the challenge, but instead of posting your full working solution, it is best to stay focused on answering the original poster’s question(s) and help guide them with hints and suggestions to solve their own issues with the challenge.
We are trying to cut back on the number of spoiler solutions found on the forum and instead focus on helping other campers with their questions and definitely not posting full working solutions.
I’ll give it to you as a series of hints to see if you can figure it out yourself.
Hint 1
You have made a small but important formatting error
Hint 2
Check where you have put your spaces.
Hint 3
From CSS Tricks css-basics-syntax-matters-syntax-doesnt:
You can’t put spaces in properties, function names, or anywhere you name things. Adding spaces in those situations effectively changes the names, breaking them.
MDN gives the syntax spec if you search for “CSS Functions”
The value syntax starts with the name of the function, followed by a left parenthesis (. Next up are the argument(s), and the function is finished off with a closing parenthesis ).
Hint 4 (i.e. the answer)
In CSS everything after the first character in the function name right up to the opening bracket for the function’s parameters is considered part of the function name, including any spaces.
You have put a space between linear-gradient and its proceeding brackets (containing the parameters). Therefore the function the CSS is “looking” for is "linear-gradient ", i.e. including the space at the end:
"linear-gradient" != "linear-gradient " so if it did exist, you’d end up using the wrong function
"linear-gradient "cannot exist because CSS does not allow any whitespace in function names!
So this is incorrect either way and therefore the browser ignores the background style rule.
It’s a simple fix, just remove that space and everything should work fine:
Mod edit: removed
PS: For future reference, it would have been useful if you described fully what you expected to happen and contrasted it with what actually happened when you tried to solve this particular problem.
It is great that you solved the challenge, but instead of posting your full working solution, it is best to stay focused on answering the original poster’s question(s) and help guide them with hints and suggestions to solve their own issues with the challenge. I have removed the answer from your post
We are trying to cut back on the number of spoiler solutions found on the forum and instead focus on helping other campers with their questions and definitely not posting full working solutions.