Skip to content

Instantly share code, notes, and snippets.

@rintoug
Created March 27, 2017 14:43
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rintoug/f5f903886e416f68ce22cc5cf14e5504 to your computer and use it in GitHub Desktop.
Save rintoug/f5f903886e416f68ce22cc5cf14e5504 to your computer and use it in GitHub Desktop.
Cross Browser Opacity in CSS
.your_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;
/* Modern browsers */
opacity: 0.5;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment