Afternoon Chaps,
Been a while since I've delved into the old CSS stuff and got a little problem on my latest template with opacity/transparancy and things, which I've not worked with before.
Basicly I have a dark colour background to the page, with an opaque white <UL> over the top of it, like this:
Now, I want to have white links on top of this which are NOT transparant, however all my <li> elements inherit the opacity from the containing <ul>. I've tried to overide this like so:
But that doesnt work, the links still inherit the opacity and are therefore invisible.
Any ideas on how to sort this one out?
Thanks guys,
Rob
Been a while since I've delved into the old CSS stuff and got a little problem on my latest template with opacity/transparancy and things, which I've not worked with before.
Basicly I have a dark colour background to the page, with an opaque white <UL> over the top of it, like this:
Code:
.menu ul li:hover ul {
background-color:#fff;
filter:alpha(opacity=40);
opacity: 0.4;
-moz-opacity:0.4;
}
Now, I want to have white links on top of this which are NOT transparant, however all my <li> elements inherit the opacity from the containing <ul>. I've tried to overide this like so:
Code:
#header-nav-ul li ul li a:link {
color:#fff;
background:none;
filter:alpha(opacity=100);
opacity:1.0;
-moz-opacity:1.0;
}
But that doesnt work, the links still inherit the opacity and are therefore invisible.
Any ideas on how to sort this one out?
Thanks guys,
Rob