linear gradient and image background css code example
Example 1: background with image and gradient
body {
background: #eb01a5;
background-image: url("IMAGE_URL");
background-image: url("IMAGE_URL"), linear-gradient(#eb01a5, #d13531);
}
Example 2: linear gradient css background image
background-image: url("IMAGE_URL"), linear-gradient(#eb01a5, #d13531);
Example 3: background-image linear-gradient url
body {
background-image: url("http://www.skrenta.com/images/stackoverflow.jpg"), linear-gradient(red, yellow);
background-image: url("http://www.skrenta.com/images/stackoverflow.jpg"), -webkit-gradient(linear, left top, left bottom, from(red), to(yellow));
background-image: url("http://www.skrenta.com/images/stackoverflow.jpg"), -moz-linear-gradient(top, red, yellow);
}
Example 4: css horizontal gradient background color
.foo {
background-image: linear-gradient(red, blue);
}