The real CSS solution is with background-color:rgba(0,0,0,0.5); The problem using Opacity is that it sets the opacity value for an element and all of its children;
So the hack using !important, or using a different value on its child element is useless.
The PNG solution is valid, but only as a fallback ( as it costs an extra HTTP request) for old browsers (Internet Explorer 8,7).
| Code:: |
background:none;
-ms-filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#26ffffff,endColorstr=#5000000);
filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#26ffffff,endColorstr=#5000000);
zoom: 1;
background-color:rgba(0,0,0,0.5);
|