Cross-browser Opacity


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



Copy this code and paste it in your HTML
  1. selector {
  2. filter: alpha(opacity=50); /* internet explorer */
  3. -khtml-opacity: 0.5; /* khtml, old safari */
  4. -moz-opacity: 0.5; /* mozilla, netscape */
  5. opacity: 0.5; /* fx, safari, opera */
  6. -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=70)"; /* IE8 */
  7. filter: alpha(opacity=70); /* IE 5-7 */
  8. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.