Skip to content

Commit

Permalink
Ok, it is better to use both types of clearfixes
Browse files Browse the repository at this point in the history
- .clearfix via 'overflow: hidden' as simple solution
- .micro-clearfix in cases when children contain absolutely positioned
  elements
  • Loading branch information
neoascetic committed Sep 5, 2012
1 parent 65cf733 commit 47fe4c0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions utilites.less
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
// Clearfix
//
.clearfix() {
overflow: hidden;
zoom: 1;
}
.micro-clearfix() {
&:before, &:after {
content: "";
display: table;
Expand Down

0 comments on commit 47fe4c0

Please sign in to comment.