Skip to content

Instantly share code, notes, and snippets.

@tomess
Last active December 12, 2015 01:38
Show Gist options
  • Save tomess/4692139 to your computer and use it in GitHub Desktop.
Save tomess/4692139 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