Skip to content

Instantly share code, notes, and snippets.

@trumball
Created May 24, 2013 13:05
Show Gist options
  • Save trumball/5643365 to your computer and use it in GitHub Desktop.
Save trumball/5643365 to your computer and use it in GitHub Desktop.
Updated ClearFix Some of the newer CSS3 properties have pampered us into thinking they may be applied everywhere. Unfortunately opacity is one such example where CSS still requires some minor updates. Appending the filter property should handle any older versions of IE with grace.
.transparent {
filter: alpha(opacity=50); /* internet explorer */
-khtml-opacity: 0.5; /* khtml, old safari */
-moz-opacity: 0.5; /* mozilla, netscape */
opacity: 0.5; /* fx, safari, opera */
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment