Transparency of background but not text

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
odt
Beginner
Beginner
Posts: 4
Joined: Fri Jul 29, 2005 12:27 pm
Location: Scotland
Contact:

Transparency of background but not text

Post by odt »

Is there a way to make the background of the menu partially transparent while leaving the menu text opaque? It looks like the IE filter is applied to everything.

Many thanks
Owain
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

Hi,

Yes, the IE opacity filter is applied to everything. It only works in IE, of course. The only way I can think to do what you want is to have a bg image that is semi-transparent and set the offbgcolor and onbgcolor to transparent. The transparency would be in the bgimage itself.

You can also use the IE FILTERS DEMO which is interactive to test various settings of the overfilter/outfilter. It's a pretty neat tool. You can apply the filter and then change the orientation of the menu from horizontal to vertical and turn the menu off and on so you can see how it looks in different circumstances. It will post the code to a form so you will have exactly what you need.

Ruth
Post Reply