Gradients in CSS are a way to transition between colors across the distance of an element. They are applied to the background property and the syntax looks like this:
gradient-type(
color1,
color2
);
In the example, color1 is solid at the top, color2 is solid at the bottom, and in between it transitions evenly from one to the next. In .bb1a, add a gradient of type linear-gradient to the background property with --building-color1 as the first color and --window-color1 as the second.
this one was really getting me, too - i hate that i copied the answer - but i dunno if i would have figured that out w/ the hints that were included. UGH. guess i should just GRASP it even if i copied the answer.
lol, the copied;
background: linear-gradient(var(–building-color1), var(–window-color1));
There is something weird with those double dashes. Those aren’t ascii dashes, they are some other type of character that looks like a dash. The dashes you used in the background-color are what you want.
I noticed your attempt to help and contribute support to the forum and other fellow learners. Thank you for doing that. It is exactly what we hope everyone will do.
If I may point your attention to one thing though; we believe that learning is best achieved by working hard and sometimes even struggling to accomplish tasks and challenges. This struggle makes the person appreciate more the successes when they get them. If we post solutions to the forum though, we are preventing others from this achievement through their effort (to debug/to communicate/to problem-solve). They may learn only to copy-paste other people’s solutions and regret this later when they are unable to stand on their own two feet in software development roles.
I am sure you understand this from your own experience and I hope you understand therefore why I edited your last post to remove the code solution from it.
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.
you are new to the forum I believe, so you may not be aware that we are trying to cut back on solutions being posted on the forum in response to requests for help.
We encourage everyone to post hints/tips/guidance but not solutions in response to someone asking for help with a coding problem.