Tell us what’s happening:
Hello,
I’m trying to solve this issue
Here is the condition
"
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.
Note
While there are other ways to specify a color value, like rgb() or hsl(), use hex values for this challenge.
"
I have converted HEX color to the hsl() here:
w3schools.com
And my code, I can’t catch what is wrong with it?
Your code so far
<style>
div{
border-radius: 20px;
width: 70%;
height: 400px;
margin: 50px auto;
background: linear-gradient(35deg, hsl(180, 100%, 90%), hsl(0, 100%, 90%));
}
</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/64.0.3282.119 Safari/537.36
.
Link to the challenge:
https://learn.freecodecamp.org/responsive-web-design/applied-visual-design/create-a-gradual-css-linear-gradient/