How to give cross browser transparency to element's background only?

Posted by metal-gear-solid on Stack Overflow See other posts from Stack Overflow or by metal-gear-solid
Published on 2010-05-03T11:12:26Z Indexed on 2010/05/03 11:18 UTC
Read the original article Hit count: 141

Filed under:

How to give cross browser transparency to background only?

I want to give transparency to background of ul { background: } only don't want to make text inside ul li a {} transparent.

ul { filter: alpha(opacity=50); /* internet explorer / -khtml-opacity: 0.5; / khtml, old safari / -moz-opacity: 0.5; / mozilla, netscape / opacity: 0.5; / fx, safari, opera */ }

this code make everything transparent http://perishablepress.com/press/2009/01/27/cross-browser-transparency-via-css/

© Stack Overflow or respective owner

Related posts about css