Thinskys
11-21-2007, 04:14 AM
I am trying to set the background of a element to transparent but not the child elements. Here is the code I have:
.nav {
background-color:#000000;
float:left;
filter:alpha(opacity=80);
opacity: 0.8;
-moz-opacity:0.8;
width:230px;
height:230px;
}
.navImage{
width:50px;
height:50px;
}
<div class="nav">
<div class="navImage"<img src="images/atc_logo.gif"></div>
</div>
Any idea if it is possible to make the background transparent but the child elements 100%?
Thanks in advance.
.nav {
background-color:#000000;
float:left;
filter:alpha(opacity=80);
opacity: 0.8;
-moz-opacity:0.8;
width:230px;
height:230px;
}
.navImage{
width:50px;
height:50px;
}
<div class="nav">
<div class="navImage"<img src="images/atc_logo.gif"></div>
</div>
Any idea if it is possible to make the background transparent but the child elements 100%?
Thanks in advance.