Tell us what’s happening:
Your code so far
<style>
div {
border-radius: 20px;
width: 70%;
height: 400px;
margin: 50px auto;
background: linear-gradient(30deg, #CCFFFF, #FFCCCC);
}
</style>
<div></div>
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.113 Safari/537.36
.
Challenge: Create a Gradual CSS Linear Gradient
Link to the challenge:
Sky020
2
Hello there,
You need to follow the instructions exactly:
Use a linear-gradient()
for the div
element’s background
, and set it from a direction of 35 degrees to change the color from #CCFFFF
to #FFCCCC
.
What you have:
background: linear-gradient(30deg, #CCFFFF, #FFCCCC);
Click for answer:
You need to set the direction to be 35deg not 30deg.
Hope this helps