...

View Full Version : Transparent menu problem



Mido™
11-08-2009, 04:56 PM
I make a transparent menu and the problem is about the font who on it,I don't want to make the font transparent like the menu,what I should do?

and this is my css code for the menu:


#sub_menu{
width:110px;
position:absolute;
z-index:1;
margin-top:0px;
margin-left:100px;
visibility:hidden;
opacity:0.9;
filter:alpha(opacity=90);
}

met
11-08-2009, 05:05 PM
#sub_menu a {
/* assuming you are using anchors in the menu,
otherwise substitute with <span> */

opacity:1;
filter:alpha(opacity=100);
}


should do the trick.

a slightly better alternative would be to apply the style to say the LI element of the menu (again, assuming you are using a list to display the menu.)

that way only the LI is effected, the content of the LI will not be.

Mido™
11-09-2009, 10:54 AM
yes I use anchors in the menu but even after I tried your way it didn't work specialy in firefox,but when I changed the color of the anchor from white to dark blue it worked well.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum