Created
March 14, 2012 19:58
-
-
Save h0st1le/2039081 to your computer and use it in GitHub Desktop.
background transparency without affecting child elements
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
.alpha60 { | |
/* Fallback for web browsers that doesn't support RGBa */ | |
background: rgb(0, 0, 0) transparent; | |
/* RGBa with 0.6 opacity */ | |
background: rgba(0, 0, 0, 0.6); | |
/* For IE 5.5 - 7*/ | |
filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#99000000, endColorstr=#99000000); | |
/* For IE 8*/ | |
-ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr=#99000000, endColorstr=#99000000)"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment