Create a Gradual CSS Linear Gradient issue

Create a Gradual CSS Linear Gradient issue
0

#1

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/


#2

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