hope you can help with a simple CSS question. I am trying to make a button (not necessarily an html class button) with a transparent background and an outline with text that does not have the same opacity as the button. That is, the text should remain with a different opacity than the button. Is it possible?
My violin attempt to solve this problem here is http://jsfiddle.net/9jXYt/
CSS
#xxx { outline:white solid 0.5px; background-color: rgba(255,0,0,0.2); padding: 6px 8px; border-radius: 3px; color: black; font-weight: bold; border: none; margin: 0; } #xxx:hover { opacity: 0.9; } #fff { font-family: helvetica, arial, sans-serif; font-size: 19pt; opacity: 1 !important; color: rgba(0,0,0,0.5) !important; }
HTML: <button id="xxx"><div id="fff">This is a test</div></button>
Thanks in advance for any tips.
source share