PDA

View Full Version : Transparency in "AnyLink Drop Down Menu"



bala
09-11-2005, 09:52 PM
Hi,

I use this script (work fine) :) but I want have transparent background.
I add to css definition:
#dropmenudiv{
...
filter:alpha(opacity=50);
-moz-opacity:0.5;
opacity:0.5;
}
It work OK but text is also transparent. How make tranparent only background in drop menu?

jscheuer1
09-11-2005, 10:45 PM
You can't using opacity of any type because opacity is applied to all parts of an element and all parts of its contained elements. You can, sometimes, set the background color transparent but, this will not work in certain situations, try it:

#dropmenudiv{
...
background-color:transparent;
}If the above works, it will result in a truly transparent (totally see through) background and needs to be applied to an element and its contained elements to work fully. Another approach is to use opacity but, not to make it so low, more like 70 for alpha and 0.70 for moz and regular opacity. Then make your text bold and either darker or lighter than it normally would be.