If you have your HTML of this sort:
<div id="container">
<p>
Darn fanatically far and tarantula jeepers meek a secret much so hence underneath monogamously interwove apart gosh spilled far where and badger.
</p>
<a href="#">This is a link</a>
</div>
Even if your CSS is this.
#container {
background: #000;
color: #fff;
opacity: 0.4;
}
#container a {
color: #ff0450;
opacity: 1;
}
It will not make the link have a greater opacity than the container because opacity is inherited from the parent.
The only way to do it is using rgba
values but it will not work in IE.
The correct way to do it is this -
#container {
background: rgba(0,0,0,0.4);
color: #fff;
}
Take a look at this fiddle