Hello and thank you for taking the time to read my question. Hopefully it is simple enough.
I am trying to create a 10% white opacity background wrapper (#header-wrapper). That much was successful. Inside the wrapper I have another tag with my text (#logo). When previewing, the text inside #logo is also at 10% opacity. Not sure as to why. I tried setting up a Z-index so #logo could be on top and maybe not have the effect applied.
Code:
#header-wrapper {
overflow: hidden;
height: 150px;
background-color:white;
opacity:0.1;
filter:alpha(opacity=10); /* For IE8 and earlier */
z-index: 1;
}
#header {
width: 1200px;
height: 150px;
margin: 0 auto;
padding: 0px 0px;
}
#logo {
float: left;
width: 310px;
height: 150px;
padding: 0px 0px 0px 10px;
z-index: 2;
}
Code:
<div id="header-wrapper">
<div id="header">
<div id="logo">
Sample text
</div>
</div>
</div>
Any help or suggestions are appreciated! Thank you
-Ben