Skip to content

Instantly share code, notes, and snippets.

@5iDS
Created December 29, 2014 09:49
Show Gist options
  • Save 5iDS/8af6a6a0eba58ae784a4 to your computer and use it in GitHub Desktop.
Save 5iDS/8af6a6a0eba58ae784a4 to your computer and use it in GitHub Desktop.
Crossbrowser RGBA and Prevention of Opacity Propagation
/**
* Crossbrowser RGBA and Prevention of Opacity Propagation
* Created by Martin Ivanov
* http://wemakesites.net
*/
.outer
{
position: absolute;
top: 24px;
left: 24px;
border: solid 1px #000;
padding: 24px;
background: rgba(64, 64, 64, 0.5); /* R, G, B, A */
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#7f404040, endColorstr=#7f404040); /* AA, RR, GG, BB */
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment