Cross-Browser Opacity


 / Published in: CSS
 

  1. selector {
  2. opacity: .75; /* Standard: FF gt 1.5, Opera, Safari */
  3. filter: alpha(opacity=75); /* IE lt 8 */
  4. -ms-filter: "alpha(opacity=75)"; /* IE 8 */
  5. -khtml-opacity: .75; /* Safari 1.x */
  6. -moz-opacity: .75; /* FF lt 1.5, Netscape */
  7. }

Report this snippet  

Comments

RSS Icon Subscribe to comments
Posted By: Nettuts on June 25, 2010

Truthfully, this is probably overkill. Firefox users upgrade often. Modify as you wish. :)

Posted By: hmvrulz on October 2, 2010

thanks for the script :D

You need to login to post a comment.