multicolor background css code example
Example 1: multiple color background
body{
background-repeat:no-repeat;
background-image:
url(http://lorempixel.com/640/100/nature/John3-16/),
linear-gradient(to right, RGB(0, 0, 0), RGB(255, 255, 255)),
linear-gradient(to right, RGB(110, 175, 233), RGB(110, 175, 233));
background-position:
0 0,
0 100px,
0 130px;
background-size:
640px 100px,
100% 30px,
100% 30px;
}
Example 2: css horizontal gradient background color
.foo {
background-image: linear-gradient(red, blue);
}
Example 3: gradient css background
background: rgb(166,166,166);
background: linear-gradient(0deg, rgba(166,166,166,1) 0%, rgba(255,255,255,1) 29%);
Example 4: css multicolor background
background: linear-gradient(110deg, #fdcd3b 60%, #ffed4b 60%);