Skip to content

Instantly share code, notes, and snippets.

@ramzesimus
Created October 20, 2012 17:40
Show Gist options
  • Save ramzesimus/3924168 to your computer and use it in GitHub Desktop.
Save ramzesimus/3924168 to your computer and use it in GitHub Desktop.
CSS: Opacity Cross Browser
.transparent_class {
/* IE 8 */
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";
/* IE 5-7 */
filter: alpha(opacity=50);
/* Netscape */
-moz-opacity: 0.5;
/* Safari 1.x */
-khtml-opacity: 0.5;
/* Good browsers */
opacity: 0.5;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment