/* -------------------------------------------------------------------- * * Micro Clearfix * http://nicolasgallagher.com/micro-clearfix-hack/ */ .page:before, .grid:before, .page:after, .grid:after { content: " "; display: table; } .page:after, .grid:after { clear: both; } .page, .grid { /** * For IE 6/7 only * Include this rule to trigger hasLayout and contain floats. */ *zoom: 1; } /* -------------------------------------------------------------------- */ .page { margin-left: auto; margin-right: auto; } .page { max-width: 1050px; } .grid { margin-left: -1.425%; margin-right: -1.425%; } /* -------------------------------------------------------------------- * * Grid columns: not using grid-init() */ .span-columns-2 { /* Spanning 2 of 12 columns */ width: 13.88%; float: left; margin-left: 1.38%; margin-right: 1.38%; } .span-columns-4 { /* Spanning 4 of 12 columns */ width: 30.55%; float: left; margin-left: 1.38%; margin-right: 1.38%; } .span-columns-6 { /* Spanning 6 of 12 columns */ width: 47.22%; float: left; margin-left: 1.38%; margin-right: 1.38%; } /* -------------------------------------------------------------------- * * Grid columns: using grid-init() */ .span-columns-2, .span-columns-4, .span-columns-6, .span-columns-18 { float: left; margin-left: 1.38%; margin-right: 1.38%; } .span-columns-2 { /* Spanning 2 of 12 columns */ width: 13.88%; } .span-columns-4 { /* Spanning 4 of 12 columns */ width: 30.55%; } .span-columns-6 { /* Spanning 6 of 12 columns */ width: 47.22%; } /* -------------------------------------------------------------------- * * Grid colum spanning more columns than layout */ .span-columns-18 { /* Spanning 18 of 12 columns */ width: 147.22%; }