Stack Overflow - Opacity Problem

by Aniket Pant

HTML

<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>

CSS

#container {
    background: #000;
    background: rgba(0,0,0,0.4); /* correct */
    color: #fff;
    /* opacity: 0.4 won't do the job */
}

#container a {
    color: #ff0450;
    /* opacity: 1 is not requried */
}