Guys i have an html div and here is the code
<div id="mainBody"></div>
I gave it a background image in css and here is the code
#mainBody{background : url(../images/index/optimizedBackground.jpg) repeat 0 0;}
I want to add a color on it but this color is opacity and view the background image.
so i used this html code and adding a div inside the first one:
<div id="mainDiv"><div id="layoutDiv"></div></div>
I gave the layout div a background color in css:
#layoutDiv{
background-color : #1a1a1a;
opacity : 0.9;}
And it works perfectly but the problem here is anything inside the layout div has 0.9 opacity and i want layout div only has 0.9 opacity not the divs inside it