Design: Create a Gradual CSS Linear Gradient


I cannot pass this one :
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.

This is what I added:

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

I am getting this console error:
The div element should have a linear-gradient background with the specified direction and colors.

What is wrong?

Link to the challenge:


It looks correct.try refreshing the browser and retyping the answer then run again.

Thanks - I tried to refresh, still getting the same error.
I will wait a bit and try again.
Thanks for your answer :slight_smile:

Actually i think i see a space after the word gradient. Delete that space when you try again.

Amazing - it works!
Thanks a lot!

1 Like