whats the problem with the below code?
<style>
div{
background: linear-gradient(35deg ,#CCFFFF ,#FFCCCC);
border-radius: 20px;
width: 70%;
height: 400px;
margin: 50px auto;
}
</style>
<div></div>
error:
The div element should have a linear-gradient background with the specified direction and colors.
link:
https://learn.freecodecamp.org/responsive-web-design/applied-visual-design/create-a-gradual-css-linear-gradient/
change its format to this:
background: linear-gradient(35deg, #CCFFFF, #FFCCCC);
I think the error is due to fcc requiring a particular format…not sure though
Note: This is for the benefit of those who newly-joined freecodecamp.org
the comma should immediately come after the specified color, then space. Please see below.
background: linear-gradient(35deg, #CCFFFF, #FFCCCC);
The one you have made was (35deg ,#CCFFFF ,#FFCCCC);