Hello guys! I finally figured out how to apply tansparency in both IE and Firefox, but now I have another problem. I applied transparency to my background image, but the text is now transparent as well. Is there a way to apply the transparency to only background image, not the text?
Here's my CSS:
Code:
.navbar {
float: left;
width: 780px;
height: 30px;
background: url(images/bg.png) repeat;}
* html .navbar {
display: block;
background: url(images/bg.gif) repeat;
opacity: 0.5;
-moz-opacity: 0.5;
filter: alpha(opacity=50);}
.menu * {
padding: 0;
margin: 0;}
.menu {
width: 780px;
padding: 0;
margin: 0;}
.menu li {
float: left;
display: inline;
padding-left: 10px;
list-style: none;}
.menu li a {
float: left;
display: inline;
font: bold 9pt Verdana, arial;
padding: 8px 0;
width: 100px;
text-decoration: none;
text-transform: uppercase;
color: #FFFFFF;}
* html .menu li a {
opacity: 1;
-moz-opacity: 1;
filter: alpha(opacity=100);}
.menu li a:hover {
text-decoration: underline;
color: #DBDFEB;}
I added
opacity: 1;
-moz-opacity: 1;
filter: alpha(opacity=100);
to the links, but they're still half transparent.
Anyone has any ideas?
Thanks!
|