Skip to content

Instantly share code, notes, and snippets.

@jwestbrook
Last active September 4, 2015 16:50
Show Gist options
  • Save jwestbrook/45a967c02cbad2548875 to your computer and use it in GitHub Desktop.
Save jwestbrook/45a967c02cbad2548875 to your computer and use it in GitHub Desktop.
Bootstrap 2.3.2 clearfix in mixins.less
//Fix the clearfix
.clearfix {
*zoom: 1;
&:before,
&:after {
display: table;
content: "";
// Fixes Opera/contenteditable bug:
// http://nicolasgallagher.com/micro-clearfix-hack/#comment-36952
line-height: 0;
clear: both;
}
}
//BEFORE
.clearfix {
*zoom: 1;
&:before,
&:after {
display: table;
content: "";
// Fixes Opera/contenteditable bug:
// http://nicolasgallagher.com/micro-clearfix-hack/#comment-36952
line-height: 0;
}
&:after {
clear: both;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment