diff options
| author | Jacob Thornton <[email protected]> | 2011-08-19 20:20:48 -0700 |
|---|---|---|
| committer | Jacob Thornton <[email protected]> | 2011-08-19 20:20:48 -0700 |
| commit | 73f1bcf7179b3050d2e8e0dd65c3f87667ceed7f (patch) | |
| tree | b9e6ff7718150947950755c7365135212b102fdf /lib | |
| parent | b342c4cca322ab40763aaa4cc26108a8aeb3620d (diff) | |
| download | bootstrap-73f1bcf7179b3050d2e8e0dd65c3f87667ceed7f.tar.xz bootstrap-73f1bcf7179b3050d2e8e0dd65c3f87667ceed7f.zip | |
Simpler clearfix #2 http://nicolasgallagher.com/micro-clearfix-hack/
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/preboot.less | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/preboot.less b/lib/preboot.less index 38b81f701..b90021ebe 100644 --- a/lib/preboot.less +++ b/lib/preboot.less @@ -54,15 +54,15 @@ // MIXINS // ------ -// Clearfix for clearing floats like a boss +// Clearfix for clearing floats like a boss h5bp.com/q .clearfix { zoom: 1; + &:before, &:after { + display: table; + content: ""; + } &:after { - display: block; - visibility: hidden; - height: 0; clear: both; - content: "."; } } |
