I am trying to create a buttonbar using simple <div>
and change its opacity to 50% and give a background
But the elements which come inside this division exhibit the same transparency as there parent <div>
. I want them to retain 100% opacity. (Which is not possible). How to make this Possible?
A sample CSS of what I am trying to do is this
<style>
#bar { background:#09f;opacity:0.5; }
#bar a { background:#FF0;opacity:1; }
</style>
<div id="bar">
<a href="#">Home</a>
<a href="#">Contact</a>
<a href="#">Feedback</a>
</div>