SOLVED-Create a Gradual CSS Linear Gradient-my code isnt working

Tell us what’s happening:

Your code so far


<style>

  div{ 
    border-radius: 20px;
    width: 70%;
    height: 400px;
    margin: 50px auto;
    background: linear-gradient(45deg, red, blue, #FFF000 );
    
  }

</style>

<div></div>

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.87 Safari/537.36.

Link to the challenge:
https://learn.freecodecamp.org/responsive-web-design/applied-visual-design/create-a-gradual-css-linear-gradient

I just ran your code within the challenge. Check your error log.

Also, read carefully the instructions. You need to follow them EXACTLY.

thanks .seen my error

1 Like

No problem! :slight_smile:

so i put in the missing instructions and still getting an error

Make sure you are reading the instructions VERY carefully. The challenge is looking for a very precise solution. Can you show me your code?

div{ border-radius: 20px; width: 70%; height: 400px; margin: 50px auto; background: linear-gradient(35deg,#CCFFFF, #FFCCCC); }
1 Like

This code is working for me. Try refreshing your page and pasting it back in.

thanks mate,its working now

1 Like

Congrats on finding the solution!