Skip to content

Instantly share code, notes, and snippets.

@mugukamil
Created January 7, 2016 05:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mugukamil/918885e79b3c3e16a167 to your computer and use it in GitHub Desktop.
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…
.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