1 |
|
2 | /**
|
3 | *
|
4 | * THANKS: Nicolas Gallagher - micro clearfix http://nicolasgallagher.com/micro-clearfix-hack/
|
5 | *
|
6 | * For modern browsers
|
7 | * 1. The space content is one way to avoid an Opera bug when the
|
8 | * contenteditable attribute is included anywhere else in the document.
|
9 | * Otherwise it causes space to appear at the top and bottom of elements
|
10 | * that are clearfixed.
|
11 | * 2. The use of `table` rather than `block` is only necessary if using
|
12 | * `:before` to contain the top-margins of child elements.
|
13 | * 3. For IE 6/7 only
|
14 | * Include this rule to trigger hasLayout and contain floats.
|
15 | */
|
16 |
|
17 | .cf:before,
|
18 | .cf:after {
|
19 | content: " "; /* 1 */
|
20 | display: table; /* 2 */
|
21 | }
|
22 | .cf,
|
23 | .cf:after {
|
24 | clear: both;
|
25 | }
|
26 |
|
27 | .cf {
|
28 | *zoom: 1; /* 3 */
|
29 | }
|
30 |
|