CSS Gradual Linear Gradient

CSS Gradual Linear Gradient
0.0 0

#1

Tell us what’s happening:

i was told to 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.
i have done it though i cannot procced, I don’t know if i have done it the right way

Your code so far


<style>

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

</style>

<div></div>

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.181 Safari/537.36.

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


#2

Hi @philip41!
It’s because you’re missing a semicolon after your background declaration. Should be:

...#FFCCCC);

:smiley:


#3

wow, indeed one has to be so keen while writing these things,
Thanks alot bro


#4

happens to me all the time :laughing: