-1

I have a div that has a low opacity, so the background is visible through it. However, I want the content inside to have full opacity. Right now, I have set the opacity to the inner div, logo, to full opacity, but it still has the low opacity.

My code is below.

This is the style for the two divs.

#container {
-moz-opacity: 0.48;
opacity: 0.48;
-ms-filter:"progid:DXImageTransform.Microsoft.Alpha"(Opacity=48);
}

#logo {
-moz-opacity: 1.00;
opacity: 1.00;
-ms-filter:"progid:DXImageTransform.Microsoft.Alpha"(Opacity=100);
} 

This is where I implement it.

<div id="container">
<div id="logo">
<center><img src="logo.png" /></center>
</div>
</div>
Pavlo
  • 43,301
  • 14
  • 77
  • 113
elliotanderson
  • 442
  • 4
  • 14

1 Answers1

2

Try set opacity of the #container using. This should fix your issue

background-color:rgba(r,g,b,0.48)
Anil Namde
  • 6,452
  • 11
  • 63
  • 100