I am trying to create a keypad with a simple one <div>and change its opacity to 50% and give a background
But the elements that fall into this separation have the same transparency as the parent <div>. I want them to maintain 100% opacity. (It's impossible). How to make this possible?
The CSS example I'm trying to do is
<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>
source
share