/ Published in: CSS
URL: http://bitesizestandards.com/bites/easy-cross-browser-transparency
If you've ever found yourself in the position of needing to place a semi-transparent image or layer on a web page, you've probably ended up reading various arcane methods involving 24-bit PNG graphics and proprietary IE AlphaImageLoader expressions. Luckily, there is an easier way; albeit at the expense of valid CSS.
Expand |
Embed | Plain Text
#c-transparent { opacity: 0.7; -moz-opacity: 0.7; -khtml-opacity: 0.7; /* filter: alpha(opacity=70);*/ filter:progid:DXImageTransform.Microsoft.Alpha(opacity=70); }
Comments
Subscribe to comments
You need to login to post a comment.

Robert Nyman: http://www.robertnyman.com comments: "It should be noted that opacity is supported just fine in Mozilla web browsers as well. Also, it’s better to use the filter with progid in IE for performance reasons, like this: filter:progid:DXImageTransform.Microsoft.Alpha(opacity=90);"