Skip to content

Instantly share code, notes, and snippets.

@ahmadalbakri
Last active December 11, 2015 02:09
Show Gist options
  • Save ahmadalbakri/4528750 to your computer and use it in GitHub Desktop.
Save ahmadalbakri/4528750 to your computer and use it in GitHub Desktop.
CSS : Clearfix
.clearfix: after {
content: ".";
display: block;
height: 0;
clear: both;
visibility: hidden;
}.clearfix {
display: inline - block;
} /* Hides from IE-mac \*/
* html.clearfix {
height: 1 % ;
}.clearfix {
display: block;
} /* End hide from IE-mac */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment