I have a background image where the top row of pixels is a solid color (this is a landscape photo). The idea would be to have it at the bottom of the page and then above it a CSS gradient that will stretch from the top of the page, stopping at the height of the image. There are many tutorials that show how to overlay / embed a gradient, but all of them assume that you need a full page gradient or an overlay gradient over the background image.
Now I have:
background: rgba(30, 53, 192, 1);
background: url("myimage.jpg") no-repeat center bottom, -moz-linear-gradient(top,
background: url("myimage.jpg") no-repeat center bottom, -webkit-gradient(linear, 0% 0%,0% 100%, from(
background: url("myimage.jpg") no-repeat center bottom, -webkit-linear-gradient(top,
background: url("myimage.jpg") no-repeat center bottom, -o-linear-gradient(top,
background: url("myimage.jpg") no-repeat center bottom, -ms-linear-gradient(top,
background: url("myimage.jpg") no-repeat center bottom, linear-gradient(top,
background-size: contain;
. CSS , , , , . , , , , .
, , , javascript, , CSS.