Is it possible to achieve fade out transparent effect on an image from the center of an image to the left of the image
I have tried the below and i get no results
#content {
display: block;
width: 960px;
margin: auto;
margin-top: 48px;
background-image: url(../images/feature-image-wild-horse.jpg), -moz-linear-gradient(left, #444444, #999999); /* FF3.6+ */
overflow: hidden;
}
One solution would be to use a blurred inset box shadow (https://developer.mozilla.org/en/docs/CSS/box-shadow):
http://jsfiddle.net/n1ck/NkHdh/4/
If you want to use a gradient, you can use
:before
to get the gradient to overlay the background image, otherwise the gradient won't be seen.Here's an example of how you can achieve this:
http://jsfiddle.net/n1ck/brqcu/2/