DNA180 Posted May 29, 2012 Share Posted May 29, 2012 Hello everyone!!! I need you help here... What I want to do, is to set an image as background and then an alpha color over this image. I tried something like that... background:url(../images/back.jpg) rgba(0, 0, 0, 0.15) repeat center center;orrgba(0, 0, 0, 0.15) background:url(../images/back.jpg) repeat center center; Both cases, the only thing I can see, is the backgroung image without rgb alpha effect!!! Does anyone have an idea on how should I do that??? Don't tell me to create a new DIV that will go over the DIV with the background image!!! It should work both in the same DIV!!! Thank you in advance!!! Link to comment Share on other sites More sharing options...
niche Posted May 29, 2012 Share Posted May 29, 2012 Is this what you're talking about? http://www.w3schools.com/css/css_image_transparency.asp Link to comment Share on other sites More sharing options...
Ingolme Posted May 29, 2012 Share Posted May 29, 2012 The alpha only applies to the color that's behind the background image, not to the background image itself. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now