I’m new to CSS and I was wondering how you can add a gradient to the background of my site?

Roy Duval
@royduval 1 0 0
CSS – how to create a background gradient
9:10 pm CSS
Updated on
I’m new to CSS and I was wondering how you can add a gradient to the background of my site?
CSS provides linear and radial gradients.
{"settings":{"resources":[],"title":"Linear Gradient"},"code":{"html":"","js":"","css":"body%7B%0A%20%20%09background%3A%20linear-gradient(90deg%2C%20rgba(131%2C58%2C180%2C1)%200%25%2C%20rgba(253%2C29%2C29%2C1)%2050%25%2C%20rgba(252%2C176%2C69%2C1)%20100%25)%3B%0A%7D"}}
body{ background: linear-gradient(90deg, rgba(131,58,180,1) 0%, rgba(253,29,29,1) 50%, rgba(252,176,69,1) 100%); }
{"settings":{"resources":[],"title":"Radial Gradient"},"code":{"html":"","js":"","css":"body%7B%0A%20%20%09background%3A%20radial-gradient(circle%2C%20rgba(63%2C94%2C251%2C1)%200%25%2C%20rgba(252%2C70%2C107%2C1)%20100%25)%3B%0A%7D"}}
body{ background: radial-gradient(circle, rgba(63,94,251,1) 0%, rgba(252,70,107,1) 100%); }