Cross Browser Opacity


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



Copy this code and paste it in your HTML
  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. -moz-opacity: .75; /* FF lt 1.5, Netscape */
  6. -webkit-opacity: .75; /* Chrome */
  7. -khtml-opacity: .75; /* Safari 1.x */
  8. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.