Skip to content

Instantly share code, notes, and snippets.

@jblotus
Created April 16, 2013 17:13
Show Gist options
  • Save jblotus/5397690 to your computer and use it in GitHub Desktop.
Save jblotus/5397690 to your computer and use it in GitHub Desktop.
Disabled css
.disabled {
/* Theoretically for IE 8 & 9 (more valid) */
/* ...but not required as filter works too */
/* should come BEFORE filter */
-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=80)";
/* This works in IE 8 & 9 too */
/* ... but also 5, 6, 7 */
filter: alpha(opacity=80);
/* Older than Firefox 0.9 */
-moz-opacity:0.8;
/* Safari 1.x (pre WebKit!) */
-khtml-opacity: 0.8;
/* Modern!
/* Firefox 0.9+, Safari 2?, Chrome any?
/* Opera 9+, IE 9+ */
opacity: 0.8;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment