I have a div with CSS properties like so:
div.header {
opacity:0.4;
filter:alpha(opacity=40);
background:#000;
width:300px;
height:300px;
}
The problem is the content that is inside this div also has the same transparency. How can I only have the background color/div show the transparency without affecting the content inside that div?
You can use
rgbaon your background:The color for IE is calculated by formula:
it gives you
66so that becomes the first 2 digits of the color.Source