Created
January 7, 2016 05:28
-
-
Save mugukamil/918885e79b3c3e16a167 to your computer and use it in GitHub Desktop.
Background transparency Being able to set the transparency of the background without affecting the transparency of the foreground (the text) is quite handy. That’s why there’s rgba() in CSS (red, green, blue, alpha). IE is not yet supporting it, but we can use the gradient filter which does support transparency. In this case we don’t need the ac…
This file contains 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
.rgba { | |
background-color: transparent; | |
background-color: rgba(200,200,200,0.8); | |
filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#99dddddd,endColorstr=#99dddddd); | |
-ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr=#99dddddd,endColorstr=#99dddddd)"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment