Tell us what’s happening:
This exercise can be a bit challenging for the wrong reason. They are asking you to change the background color but fail to mention using the “background-image” tag.
It took me a few minutes to realize this. I usually have few issues with these lessons but a small oversight can really stump some folks.
For reference try using this:
example:
background-image:linear-gradient(90deg, red, yellow, rgb(204, 204, 255));
Notice the inclusion of the word image at the beginning of this.
Your code so far
<style>
div {
border-radius: 20px;
width: 70%;
height: 400px;
margin: 50px auto;
background-image:linear-gradient(35deg, #CCFFFF, #FFCCCC);
}
</style>
<div></div>
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.104 Safari/537.36
.
Challenge: Create a Gradual CSS Linear Gradient
Link to the challenge: