I'm try to get the same effect as this site
http://cssremix.com/. Instead of making 50 images and rolling them over it would be easy to fade them and then add the text on top. I had no problem fading them but cannot get the text on top instead it fades with the image.
index.html
Code:
<div id="hud">
<div class="gfx1" onmouseover="this.style.opacity='0.3'; this.style.filter.alpha.opacity='30'"
onmouseout="this.style.opacity='1'; this.style.filter.alpha.opacity='100'">
</div>
</div>
style.css
Code:
#hud {
background:#000000;
width:125px;
height:125px;
}
.gfx1 {
background:url(images/gfximage_1.jpg) no-repeat;
width:125px;
height:125px;
filter: alpha(opacity=100);
opacity: 1;
}
The out come I'm looking for is this: