I’ve been learning HTML and CSS in the hopes of building my own website and discovered the gradient function. Applying it to the body of my website works, however it’s not a single continuous gradient – rather, it seems to be copied over and over again like this.
My WIP website
I was expecting one clean, continuous gradient, much like this:
The gradient I expected
2
Answers
I’m not sure what exactly did you use. But simply using
linear-gradient
should work. Here’s a code sampleSeems like you are almost there. Here’s the code that should work:
The 1st argument: ‘0deg’, means the gradient layers are horizontal. Please feel free to modify the colours as per your choice.