I am trying to achieve a unique design where the body
has an image background, and the main div
has a semitransparent background. I want the image to be visible through the main div, but in a shaded manner. However, the traditional approach may cause everything inside the main div
, including any embedded img
elements, to become opaque as well.
body {
background-image: ...
}
#main {
background-color: #999;
opacity: 0.9
}
How can I accomplish this effect without making the content within the main div
opaque?
Any insights would be greatly appreciated.