+ 2
Please can anyone enlighten me on how to use linear gradient?
2 odpowiedzi
+ 4
background:linear-gradient(#4acf40 0%, #25bafe 50%, #ff885e 100%);
background:linear-gradient(#4acf40, #25bafe, #ff885e);
background:linear-gradient(#4acf40 0%, #4acf40 33%, #25bafe 33%, #25bafe 66%, #ff885e 66%, #ff885e 100%);
if your html has only a body and you want to apply a gradient to it, so the body style should look like this
width: 100vw;
height: 100vh;
margin: 0;
+ 1
Here’s a full tutorial on CSS Graidents including how to use the linear-gradient property: https://youtu.be/TYHFe4L9bfo