Линейное градиент CSS фоновое изображение
background-image: url("IMAGE_URL"), linear-gradient(#eb01a5, #d13531);
abdullah
background-image: url("IMAGE_URL"), linear-gradient(#eb01a5, #d13531);
#background {
background-image: linear-gradient(to left, #4B2C4C , #151F28);
}
background: linear-gradient(#333, #333 50%, #eee 100%);
\\code for a basic gradient background
#grad {
background-image: linear-gradient(red, yellow);
}
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 (;)
background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url("../images/cover.jpg");