Cross Browser CSS Opacity


/ Published in: CSS
Save to your folder(s)



Copy this code and paste it in your HTML
  1. .transparent {
  2.  
  3. /* Modern Browsers */ opacity: 0.7;
  4.  
  5. /* IE 8 */ -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=70)";
  6.  
  7. /* IE 5-7 */ filter: alpha(opacity=70);
  8.  
  9. /* Netscape */ -moz-opacity: 0.7;
  10.  
  11. /* Safari 1 */ -khtml-opacity: 0.7;
  12.  
  13. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.