Skip to content

Instantly share code, notes, and snippets.

@zry656565
Last active August 29, 2015 14:11
Show Gist options
  • Save zry656565/1d972548948a88be81a7 to your computer and use it in GitHub Desktop.
Save zry656565/1d972548948a88be81a7 to your computer and use it in GitHub Desktop.
CSS-hack
/* clearfix */
/*=============================*/
.clearfix:before, .clearfix:after { content: ""; display: table; }
.clearfix:after { clear: both; }
/* IE 6/7 */
.clearfix { zoom: 1; }
/* transparent */
/* via http://perishablepress.com/cross-browser-transparency-via-css/ */
/*=============================*/
.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