Is there a way to apply opacity to a div without affecting the background image?
When an ajax request is made, a certain class is added to a specific div, causing all its contents to have reduced visibility. However, this also affects the background ajax loading indicator which should remain visible. How can I prevent the background image from becoming opaque in this scenario?
.ajax-mask
{
opacity: 0.5;
filter: alpha(opacity=50);
background: url('/Images/Ajax/Ajax.gif') no-repeat center center;
}
(apologies for the confusion regarding the two opacity styles)
Below is a screenshot illustrating the current situation where the mask is applied, but the indicator should stand out clearly.