I have this class
.box { background-color:#fff; border:3px solid #eee; }
My question is how can I set an opacity to the white background only so that it will kinda mix with my background?
Thank you.
I have this class
.box { background-color:#fff; border:3px solid #eee; }
My question is how can I set an opacity to the white background only so that it will kinda mix with my background?
Thank you.
I think rgba is the quickest and easiest!
background: rgba(225, 225, 225, .8)
I think this covers just about all of the browsers. I have used it successfully in the past.
You can use CSS3 RGBA in this way:
0.7
means 70% opacity.I would say that the easiest way is to use transparent background image.
http://jsfiddle.net/m48nH/
CSS 3 introduces rgba colour, and you can combine it with graphics for a backwards compatible solution.