CSS background-color gradient
by mfoley from LinuxQuestions.org on (#6FH15)
I'm trying to create a background gradient on my wepage. I've tried (in .css):
Code:body { background-image: linear-gradient(top left to bottom right, rgb(105,153,255), rgb(226,250,255)) }The above does nothing. Other permutations I've tried (I won't them them all) give me bands of gradients, about 4 bands vertically with gradients from left to right (e.g. using "to bottom right").
I'm using Microsoft Edge 117.0.
What is the correct syntax for a gradient starting at the upper left and going to the bottom right?
Code:body { background-image: linear-gradient(top left to bottom right, rgb(105,153,255), rgb(226,250,255)) }The above does nothing. Other permutations I've tried (I won't them them all) give me bands of gradients, about 4 bands vertically with gradients from left to right (e.g. using "to bottom right").
I'm using Microsoft Edge 117.0.
What is the correct syntax for a gradient starting at the upper left and going to the bottom right?