Cross-Browser Transparency via CSS


/ 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. }

URL: http://perishablepress.com/press/2009/01/27/cross-browser-transparency-via-css/

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.