Cross Browser Transparency CSS


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



Copy this code and paste it in your HTML
  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. /* Good browsers */
  15. opacity: 0.5;
  16. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.