Is it possible, to make the background of an element semi-transparent but have the content (text & images) of the element opaque?
p {
position: absolute;
background-color: green;
filter: alpha(opacity=60);
opacity: 0.6;
}
span {
color: white;
filter: alpha(opacity=100);
opacity: 1;
}
<p>
<span>Hello world</span>
</p>
It looks like child elements are subject to the opacity of their parents, so opacity:1 is relative to the opacity:0.6 of the parent.