Create a Gradual CSS Linear Gradient - not working

Tell us what’s happening:

This is not working for: linear gradient! Can anyone tell me what’s wrong here? I tried with background-colour: as well, doesn’t work.

`

Your code so far


<style>

  div{ 
    border-radius: 20px;
    width: 70%;
    height: 400px;
    margin: 50px auto;
    background: linear-gradient(
      35deg,
      #ccfff,
      #ffccc,
    );
  }
</style>

<div></div>

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_4) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.1 Safari/605.1.15.

There are six characters in a hex code. You have five.

1 Like