Posted By

jacksaidwhat on 03/09/11


Tagged

opacity transparency cross-browser


Versions (?)

Cross-Browser Opacity - [CSS]


 / Published in: CSS
 

URL: http://css-tricks.com/snippets/css/cross-browser-opacity/

  1. .transparent_class {
  2. /* IE 8 */
  3. -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";
  4.  
  5. /* IE 5-7 */
  6. filter: alpha(opacity=50);
  7.  
  8. /* Netscape */
  9. -moz-opacity: 0.5;
  10.  
  11. /* Safari 1.x */
  12. -khtml-opacity: 0.5;
  13.  
  14. /* Modern browsers */
  15. opacity: 0.5;
  16. }

Report this snippet  

You need to login to post a comment.