Gradiente linear horizontal CSS
background: linear-gradient(to left, red, blue);
Friendly Hawk
background: linear-gradient(to left, red, blue);
#grad {
background-image: linear-gradient(to right, #f1b1b1 , #82e6e8);
}
.foo {
background-image: linear-gradient(red, blue);
}
#background {
background-image: linear-gradient(to left, #4B2C4C , #151F28);
}
background: linear-gradient(to left, #333, #333 50%, #eee 100%);
The general syntax of linear-gradient is-
background: linear-gradient(gradient direction, color1 , color2 , color3, .....);
Forexample-
background: linear-gradient(46deg,green,blue,yellow,pink);
NOTE: (common mistake) we forget to write the semi-colon (;)