Design: Create a Gradual CSS Linear Gradient

Design: Create a Gradual CSS Linear Gradient
0

#1

Hey,

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: https://learn.freecodecamp.org/responsive-web-design/applied-visual-design/create-a-gradual-css-linear-gradient/

Thanks


#2

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


#3

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


#4

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


#5

Amazing - it works!
Thanks a lot!