ETpro
09-08-2010, 08:57 PM
Example at http://yhst-40846486608415.stores.yahoo.net/test1.html
I want the opacity of the background of my top navigation bars set at 80% or some such number si the fence image peeks through it. But I want the text links in the Nav Bars to be fully opaque. I don't seem to be able to keep the <a> tags from inheriting the opacity setting of the containing <td> elements, even when I specifically state an opacity value for them. How can I make this work? Do I need to use a PNG graphic with an alpha channel opacity and deal with all the hacks necessary to get PNG alpha channels working in IE?
The styles involved are:
.hornav {
background-color: #393;
filter:alpha(opacity=80);
opacity:0.8;
-moz-opacity:0.8;
height: 24px;
border-left: 1px #fff solid;
border-bottom: 1px #fff solid;
text-align: center;
}
.headnav {
background-color: #393;
filter:alpha(opacity=80);
opacity:0.8;
-moz-opacity:0.8;
height: 24px;
border-right: 1px #fff solid;
border-top: 1px #fff solid;
text-align: center;
}
.headnav2 {
background-color: #393;
filter:alpha(opacity=80);
opacity:0.8;
-moz-opacity:0.8;
height: 24px;
border-top: 1px #fff solid;
text-align: center;
}
td.hornav a:link, td.headnav a:link, td.headnav2 a:link {
filter:alpha(opacity=100);
opacity:1;
-moz-opacity:1;
font-size: 12px;
font-weight: 900;
display: block;
color: #fff;
text-decoration: none;
background-color: transparent;
}
td.hornav a:visited, td.headnav a:visited, td.headnav2 a:visited {
color: #fff;
text-decoration: none;
background-color: transparent;
}
td.hornav a:hover, td.headnav a:hover, td.headnav2 a:hover {
color: #ff0;
text-decoration: underline;
background-color: #393;
}
I want the opacity of the background of my top navigation bars set at 80% or some such number si the fence image peeks through it. But I want the text links in the Nav Bars to be fully opaque. I don't seem to be able to keep the <a> tags from inheriting the opacity setting of the containing <td> elements, even when I specifically state an opacity value for them. How can I make this work? Do I need to use a PNG graphic with an alpha channel opacity and deal with all the hacks necessary to get PNG alpha channels working in IE?
The styles involved are:
.hornav {
background-color: #393;
filter:alpha(opacity=80);
opacity:0.8;
-moz-opacity:0.8;
height: 24px;
border-left: 1px #fff solid;
border-bottom: 1px #fff solid;
text-align: center;
}
.headnav {
background-color: #393;
filter:alpha(opacity=80);
opacity:0.8;
-moz-opacity:0.8;
height: 24px;
border-right: 1px #fff solid;
border-top: 1px #fff solid;
text-align: center;
}
.headnav2 {
background-color: #393;
filter:alpha(opacity=80);
opacity:0.8;
-moz-opacity:0.8;
height: 24px;
border-top: 1px #fff solid;
text-align: center;
}
td.hornav a:link, td.headnav a:link, td.headnav2 a:link {
filter:alpha(opacity=100);
opacity:1;
-moz-opacity:1;
font-size: 12px;
font-weight: 900;
display: block;
color: #fff;
text-decoration: none;
background-color: transparent;
}
td.hornav a:visited, td.headnav a:visited, td.headnav2 a:visited {
color: #fff;
text-decoration: none;
background-color: transparent;
}
td.hornav a:hover, td.headnav a:hover, td.headnav2 a:hover {
color: #ff0;
text-decoration: underline;
background-color: #393;
}