Cross Browser Opacity


/ 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. /* IE 5-7 */
  5. filter: alpha(opacity=50);
  6. /* Netscape */
  7. -moz-opacity: 0.5;
  8. /* Safari 1.x */
  9. -khtml-opacity: 0.5;
  10. /* Good browsers */
  11. opacity: 0.5;
  12. }

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

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.