Applied Visual Design: Create a Gradual CSS Linear Gradient help

Applied Visual Design: Create a Gradual CSS Linear Gradient help
0

#1

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

<style>

  div{ 
    border-radius: 20px;
    width: 70%;
    height: 400px;
    margin: 50px auto;
    background-image: linear-gradient(35deg, #ccffff, #ffcccc);
  }

</style>

<div></div>

What am I doing wrong?


#2

Nvm I reset the code and changed background-image to background and it worked.