Created
March 27, 2017 14:43
-
-
Save rintoug/f5f903886e416f68ce22cc5cf14e5504 to your computer and use it in GitHub Desktop.
Cross Browser Opacity in CSS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.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