+ 1
How to use linear gradient
2 odpowiedzi
+ 4
use it for coloring background and text
ex:
body {
background: -webkit-linear-gradient(direction, color width, color width);
}
direction used for gradient direction. the direction is top, top-left, left, bottom-left, bottom, bottom-right, right, and top-right.
color used for the gradient color. you can use color name, hex color, rgb color, or hsl color.
width used for the gradient width. you can use px, em, pt, %.
not to advertise, but hope this help you.
i use it for making flag in this code
https://code.sololearn.com/WCPZD2qNMXJc/?ref=app
i use it too for making button in this code
https://code.sololearn.com/WGbHSxdpp5r2/?ref=app
+ 1