wtp Posted April 8, 2009 Share Posted April 8, 2009 hi all, does anyone know how to set menu bar background to transparent? this is my code how to change set it to transparent? i try and try still cannot become transparent. thanks .anylinkmenu{ position: absolute; left: 0; top: auto; visibility: collapse; border: 0px #135307; border-bottom-width: medium; font: 15px Angelina; line-height: 20px; background: transparent url(trans.png) repeat; z-index: 1; width: 100px; /* default width for menu */ } .anylinkmenu ul{ position:relative; margin: 0; padding: 0; list-style:none; } .anylinkmenu ul li a{ position:relative; width: 100%; text-indent: 4px; border-bottom: 0px solid black; padding: 2px 0; text-decoration: none; font-weight: bold; text-indent: 5px; color:#000; background: transparent url(trans.gif) no-repeat right top; display:block; z-index: -1; } .anylinkmenu a:hover{ /*hover background color*//* background when mouse point to the submenu link */ font-weight:bolder; text-indent: 20px; color: black; background:url(trans.gif); position:relative; } Quote Link to comment Share on other sites More sharing options...
Axeia Posted April 8, 2009 Share Posted April 8, 2009 you want a completely transparent background? Not semi transparent? Simply use background: none; no need to use a transparent image. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.