I make a web page when a user does not have access to it. To do this, I place a div with a white background color and reduced opacity on top of the web page. I want to write some words in this div with words having normal opacity.
Currently sustained background is displayed correctly. However, I do not see the words being regular opacity. The resulting styles in Firebug show the opacity of the words as normal, but this is clearly not the case.
What am I doing wrong?
HTML:
<div class="noPermission">
<p>I'm sorry. You do not have permission to access this page.</p>
</div>
CSS:
div.noPermission {
background-color: white;
filter:alpha(opacity=50);
opacity: 0.5;
-moz-opacity:0.50;
z-index: 20;
height: 100%;
width: 100%;
background-repeat:no-repeat;
background-position:center;
position:absolute;
top: 0px;
left: 0px;
}
div.noPermission p{
color: black;
margin: 300px auto auto 50px;
text-align: left;
font-weight: bold;
font-size: 18px;
display: block;
width: 250px;
}
source
share