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.

Tell us what’s happening:
Describe your issue in detail here.

  **Your code so far**

<style>
div {
  border-radius: 20px;
  width: 70%;
  height: 400px;
  margin: 50px auto;
background: linear-gradient(35deg, red, yellow, rgb(204, 204, 255));
}

</style>

<div></div>
  **Your browser information:**

User Agent is: Mozilla/5.0 (Linux; Android 9; Redmi 8A Dual) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/93.0.4577.62 Mobile Safari/537.36

Challenge: Create a Gradual CSS Linear Gradient

Link to the challenge:

You are using the values from the example code, not what you were asked to use.

set it from a direction of 35 degrees to change the color from #CCFFFF to #FFCCCC .

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.